15.08.2011, 20:11
I'll give you an example, written using ZCMD:
pawn Код:
CMD:ls(playerid, params[]) // command is /ls
{
if(!IsPlayerAdmin(playerid)) // Is the player not an RCON admin?
return false; // Nope, they are not an RCON admin- return false- stop the command.
SetPlayerPos(playerid, POSX, POSY, POSZ); // Set the position. Replace POSX-POSZ with your coordinates.
SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to Los Santos."); // Send a message.
return 1; // Command finished processing
}