01.12.2013, 07:26
Try this
Dont leave a space between return 1; and the send client message
Then /goto cmd I made it for admins though you must need to add
Код:
CMD:kill(playerid, params[]) { { SetPlayerHealth(playerid, 0); return 1; } return 0; } 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, 0x00000000, "Hello *******"); return 1; }
Then /goto cmd I made it for admins though you must need to add
Код:
if(playerinfo[playerid][AdminLevel] >= rankhere)