01.01.2015, 14:34
Here is a /tele command.
with the explaination,
Hope it's clear.
with the explaination,
Hope it's clear.

Код:
CMD:tele(playerid, params[])
{
if(isnull(params)) // IF you didn't type any parameter... then It'll show you the option.
{ //then
SendClientMessage(playerid, -1, "* Usage: /tele [input]"); //send this message
SendClientMessage(playerid, -1, " *** LS,SF,LV"); // Locations you can TP to
return 1;
}
if(strcmp(params,"ls",true) == 0) //if player types the parameter "ls"
{ //then
SetPlayerPos(playerid, 0, 0, 0); // sets the player's position to this coordinates.
}
else if (strcmp(params,"sf",true) == 0) //else if player types the params "sf"
{ //then
SetPlayerPos(playerid, 0, 0, 0); // sets the player's position to this coordinates.
}
else if (strcmp(params,"lv",true) == 0) //else if player types the params "lv"
{ //then
SetPlayerPos(playerid, 0, 0, 0);// sets the player's position to this coordinates.
}
return 1; // returns as true
}

