Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /wyplatas
1. [INNE] Komenda /wyplatas
Siemka mam problem z komend? nie wiem jak zrobi? ?eby m?g? wpisa? j? szef oraz vice szef. Znaczy zrobi?em tak ?e mo?e szef j? wpisa? ale nie wiem jak zrobi? ?eby jeszcze m?g? wpisa? j? vice szef.

Kod:

CMD:wyplatas(playerid, params[])
{
new targetPlayer, score;
new string2[64];
new string3[64];
if(strcmp(PlayerName(playerid),"Assassin"))return SendClientMessage(playerid, Eror, "Nie jeste? szefem frakcji/firmy.");
if (sscanf (params, "id", targetPlayer, score))
return SendClientMessage(playerid, Informacyjny, "Wpisz: /wyplatap [id] [suma]");
if (score < 1 || score > 400)
return SendClientMessage(playerid, Eror, "Nie mo?esz da? mniej ni? 1 % a wi?cej ni? 10000$.");
format(string2, sizeof(string2), "Przela?e? %d $ pieni?dzy na konto gracza %s.", score, PlayerName(playerid));
SendClientMessage(playerid, CZielony, string2);
format(string3, sizeof(string3), "Szef %s Przela? na twoje konto %d $ pieni?dzy wyp?aty.", PlayerName(playerid), score);
SendClientMessage(playerid, CZielony, string3);
return SetPlayerScore(targetPlayer, score), 1;
}

Za pomoc oferuj? zimne :piwo: