Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ciordeste(playerid, params[])
- {
- if(PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 5)
- {
- if(CiorditTimp[playerid] == 0)
- {
- new victima = GetClosestPlayer(playerid);
- if(GetDistanceBetweenPlayers(playerid,victima) < 5)
- {
- if(PlayerData[victima][pMember] + PlayerData[victima][pLeader] != 5)
- {
- new banili = random(1000) + 500;
- new nume1[24],
- nume2[24];
- GetPlayerName(playerid, nume1, sizeof(nume1));
- GetPlayerName(victima, nume2, sizeof(nume2));
- format(string, sizeof(string), "%s ti-a ciordit $%d!", nume1, banili);
- SendClientMessage(victima, COLOR_LIGHTRED, string);
- format(string, sizeof(string), "I-ai ciordit lui %s $%d!", nume2, banili);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- GivePlayerCash(playerid, banili);
- GivePlayerCash(victima, -banili);
- CiorditTimp[playerid] = 1;
- SetTimerEx("ciordealatimp", 10, false, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 10 secunde intre ciordiri!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement