Need some commands. (+1 rep if helped)
#4

pawn Код:
if(strcmp(cmd, "/teleport", true) == 0)
{
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GREY, "USAGE: /teleport [playerid]");
            return 1;
        }
        giveplayerid = strval(tmp);
        new Float:x,Float:y,Float:z;
        GetPlayerPos(giveplayerid, x, y ,z);
        SetPlayerPos(playerid, x, y, z);
        new string[128], pName[MAX_PLAYER_NAME];
        GetPlayerName(giveplayerid,pName,sizeof(pName));
        format(string,sizeof(string),"INFO: Teleported to %s.",pName);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;
}
Reply


Messages In This Thread
Need some commands. (+1 rep if helped) - by sniperwars - 31.03.2012, 18:35
Re: Need some commands. (+1 rep if helped) - by Randyy - 31.03.2012, 18:38
Re: Need some commands. (+1 rep if helped) - by sniperwars - 31.03.2012, 18:55
Re: Need some commands. (+1 rep if helped) - by introzen - 31.03.2012, 18:58
Re: Need some commands. (+1 rep if helped) - by sniperwars - 31.03.2012, 19:04
Re: Need some commands. (+1 rep if helped) - by introzen - 31.03.2012, 19:06
Re: Need some commands. (+1 rep if helped) - by sniperwars - 31.03.2012, 19:16
Re: Need some commands. (+1 rep if helped) - by Randyy - 31.03.2012, 19:19
Re: Need some commands. (+1 rep if helped) - by sniperwars - 31.03.2012, 19:22
Re: Need some commands. (+1 rep if helped) - by Randyy - 31.03.2012, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)