Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:disarm(playerid, params[],help)
- {
- #pragma unused help
- new id;
- new play;
- if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"((C:RP)) ~ "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
- if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid,-1,""SPLAVA"[C:RP] "BELA"Samo A6!");
- if(AdminDuty[playerid] == 0) return SendClientMessage(playerid, -1, ""SPLAVA"(C:RP) "BELA"Morate biti admin na duznosti!");
- if(sscanf(params, "u", id)) return SCM(playerid, -1, ""SPLAVA"((C:RP)) ~ "BELA"/disarm [ID/Ime]");
- if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je offline!");
- if(GetTimeEx() < disKomanda[playerid]) return SCM(playerid, -1, ""SIVA"Imate disarm!");
- YokerResetPlayerWeapons(id);
- va_SendClientMessage(playerid, -1, "INFO | "BELA"Postavili ste disarm igracu %s.", GetName(id));
- va_SendClientMessage(id, -1, "INFO | "BELA"Admin %s vam je dao disarm.", GetName(playerid));
- PlayerInfo[play][pGunDozvola] = 0;
- SavePlayer(playerid);
- disKomanda[playerid] = GetTimeEx() + 3600;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment