13.02.2011, 14:40
pawn Код:
COMMAND:tp(playerid, params[])
{
new tele;
if(sscanf(params, "f", tele)) SendClientMessage(playerid, RED, "USAGE: /tp id (use /teles for ID list).");
else
{
if(tele == 1)
{
SetPlayerPos(playerid, 0, 0, 0);
}
if(tele == 2)
{
SetPlayerPos(playerid, 0, 0, 0);
}
}
return 1;
}
(if you think it doesn't do anything because of the cords, it's not because of that. Even if I change it to SendClientMessage nothing shows up.)