01.06.2014, 19:30
you cannot make 2 "else" with one "if"
so here you go:
so here you go:
pawn Код:
CMD:cionrde(playerid, params[])
{
if(CiorditTimp[playerid] == 0)
{
new string[128], nume1[24], nume2[24], ID, victima;
new banili = random(1000) + 500;
GetPlayerName(playerid, nume1, sizeof(nume1));
format(string, 128, "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili);
SCM(ID, -1, string);
format(string, 128, "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili);
SCM(playerid, -1, string);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerMoney(playerid, banili);
GivePlayerMoney(victima, -banili);
CiorditTimp[playerid] = 1;
SetTimerEx("ciordealatimp", 120000, false, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
}
return 1;
}