05.01.2016, 10:20
Код:
if(CPGun[playerid] == 1) { GivePlayerMoney(playerid, 500); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 2; SetPlayerCheckpoint(playerid, 1358.7355,263.9266,19.5547, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru ca ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } if(CPGun[playerid] == 2) { GivePlayerMoney(playerid, 500); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 3; SetPlayerCheckpoint(playerid, 2045.4828,1386.7408,10.6719, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru c-ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } if(CPGun[playerid] == 3) { randommoney=random(1000)+2001; GivePlayerMoney(playerid, randommoney); DisablePlayerCheckpoint(playerid); new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string), "Job: {58FF0A}%s{FFFFFF}, ai acumulat {58FF0A}%d$ {FFFFFF}pentru ca ai terminat misiunea de gunoier.",pName,randommoney); SendClientMessage(playerid,-1,string); return 1; }