Deo skripte://
Pawno Code: //
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Kod:
CMD:mutirajg(playerid, params[]) {
if(UlogovanProvera == 0) return SCM(playerid, NS_ORANGE,"* Morate se ulogovati da bi koristili ovu komandu!");
if(PlayerInfo < 3) return SCM(playerid, NS_ORANGE, "* Niste ovlasceni za upotrebu ove komande.");
new playa, razlog;
if(sscanf(params, "uS()", playa, razlog)) return SCM(playerid,NS_YELLOW," "BELA"/mutirajg [ID/Ime_Prezime] < Razlog >");
if(playa == INVALID_PLAYER_ID) return SCM(playerid,NS_ORANGE,"* Pogresili ste ID igraca.");
PlayerInfo = 1;
if(!isnull(razlog))
{
new buffer, Name;
GetPlayerName(playerid, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, "#!: Admin %s vas je mutirao na g chatu (Razlog: %s).", buffer, razlog);
SCM(playa,NS_ORANGE, buffer);
GetPlayerName(playa, Name, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, "#!: Igraca %s ste mutirali na g chatu (Razlog: %s).",Name, razlog);
SCM(playerid,NS_ORANGE, buffer);
}
else
{
new buffer, Name;
GetPlayerName(playerid, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, "#!: Admin %s vas je mutirao na g chatu.", buffer);
SCM(playa,NS_ORANGE, buffer);
GetPlayerName(playa, Name, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, "#!: Igraca %s ste mutirali na g chatu.",Name);
SCM(playerid,NS_ORANGE, buffer);
}
return 1;
}
