Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:chexit(playerid)
- {
- SCM(playerid,C_GREEN,""WI" "G"Wypisałeś(aś) się z zabawy w chowanego!");
- if(Szukajacy[playerid])
- {
- SCM(playerid,C_RED,""WE" "R"Jesteś szukającym i nie możesz wypisać się z chowanego!");
- return 1;
- }
- if(Chowany[playerid] && ChWystartowala)
- {
- SetPlayerHealth(playerid,100);
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerActualInfo(playerid);
- ResetPlayerWeapons(playerid);
- ChowanyKandydat[ChNum] = playerid;
- ChowanyZapisany[playerid] = false;
- ChNum --;
- ZapisyUpdate();
- }
- Chowany[playerid] = false;
- Szukajacy[playerid] = false;
- for(new x=0;x<50;x++)
- {
- if(ChowanyKandydat[x] == playerid)
- {
- ChowanyKandydat[x] = -1;
- break;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement