YCMD:disarm(playerid, params[], help)
{
#pragma unused help
if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!");
new
pplayerid,string[64];
if(sscanf(params, "u",pplayerid)) return SCM(playerid, COLOR_RED, "Usage: /disarm [Player ID/Player Name]");
format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"has disarm you",GetName(playerid));
SCM(pplayerid,-1,string);
format(string,sizeof(string),""COL_RED"You'r disarm player "COL_WHITE"%s",GetName(pplayerid));
SCM(playerid,-1,string);
ResetPlayerWeapons(pplayerid);
return 1;
}
YCMD:disarm(playerid, params[], help)
{
#pragma unused help
if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!");
new
pplayerid,string[64];
if(sscanf(params, "u",pplayerid)) return SCM(playerid, COLOR_RED, "Usage: /disarm [Player ID/Player Name]");
if(!IsPlayerConnected(pplayerid)) return SCM(playerid,COLOR_RED,"Player is not connected!");
format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"has disarm you",GetName(playerid));
SCM(pplayerid,-1,string);
format(string,sizeof(string),""COL_RED"You'r disarm player "COL_WHITE"%s",GetName(pplayerid));
SCM(playerid,-1,string);
ResetPlayerWeapons(pplayerid);
return 1;
}
YCMD:disarm(playerid, params[], help)
{
#pragma unused help
if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!");
new pplayerid,string[64];
if(sscanf(params, "u",pplayerid)) return SCM(playerid, COLOR_RED, "Usage: /disarm [Player ID/Player Name]");
if(!IsPlayerConnected(playerid)) return SCM(playerid, COLOR_RED, "Player not connected");
format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"has disarm you",GetName(playerid));
SCM(pplayerid,-1,string);
format(string,sizeof(string),""COL_RED"You'r disarm player "COL_WHITE"%s",GetName(pplayerid));
SCM(playerid,-1,string);
ResetPlayerWeapons(pplayerid);
return 1;
}
YCMD:disarm(playerid, params[], help)
{
#pragma unused help
if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!");
new pplayerid,string[64];
if(sscanf(params, "u",pplayerid)) return SCM(playerid, COLOR_RED, "Usage: /disarm [Player ID/Player Name]");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]:Player not connected!");
format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"has disarm you",GetName(playerid));
SCM(pplayerid,-1,string);
format(string,sizeof(string),""COL_RED"You'r disarm player "COL_WHITE"%s",GetName(pplayerid));
SCM(playerid,-1,string);
ResetPlayerWeapons(pplayerid);
return 1;
}
pawn Код:
|
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]:Player not connected!");
thank you guys I just forgot that line
pawn Код:
|