01.12.2013, 07:44
pawn Код:
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0);
return 1;
}
CMD:goto(playerid,params[])
{
new targetid;
if(sscanf(params, "u", targetid)) SendClientMessage(playerid, 0xFFFFFFAA,"/goto [playerid]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA" Player is not online");
new Float:x,Float:y,Float:z;
GetPlayerPos(targetid,Float:x,Float:y,Float:z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
}
else {
SendClientMessage(playerid, 0xFFFFFFAA, "You do not have the right admin permissions for this command!");
}
return 1;
}
CMD:*******(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFAA, "Hello *******");
return 1;
}