18.08.2012, 02:17
Hey, I haven't got any errors and im using ZCMD and it just says server:unknown command once i type the right command...
before anyone asks... i have the include at the top (zcmd and sscanf... i also have to plugins)
pawn Код:
COMMAND:heal(playerid,params[])
{
new targetid;
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, C_RED, "USAGE: /heal [playerid/name]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,C_RED, "Player isn't connected!");
//if(playerid == targetid) return SendClientMessage(playerid, C_RED, "You can't teleport yourself!");
SetPlayerHealth(targetid,100);
return 1;
}