Need help with teleporting system
#1

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;
}
I doesn't work. When I type /tp 1 nothing happens.
(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.)
Reply


Messages In This Thread
Need help with teleporting system - by spedico - 13.02.2011, 14:40
Re: Need help with teleporting system - by spedico - 13.02.2011, 15:29
Re: Need help with teleporting system - by spedico - 13.02.2011, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)