30.12.2011, 11:36
well i suggest you to convert it to zcmd faster and easier..and use sscanf..easier too..
pawn Код:
CMD:frisk(playerid,params[])
{
if(teamid != 3) return SendClientMessage(playerid,-1,"ERROR:Only Officers can use this command!");
else
{
new id;
if(sscanf(params,"u"id)) return SendClientMessage(playerid,-1,"ERROR:/frisk [playerid]");
if(!IsPlayerConnected(id)||id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"ERROR:This Player isn't connected!");
else
{
//follow the way and do what you want