[DUV/PEDIDO] FS OU SCRIPT ...
#2

pawn Код:
if(strcmp(cmd, "/ircord", true) == 0)
    {
        new y[256];
        new z[256];
        new inte[256];
        new world[256];
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /ircord [x] [y] [z] [Interior] [virtual world]");
                return 1;
            }
            y = strtok(cmdtext, idx);
            if(!strlen(y))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /ircord [x] [y] [z] [Interior] [virtual world]");
                return 1;
            }
            z = strtok(cmdtext, idx);
            if(!strlen(z))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /ircord [x] [y] [z] [Interior] [virtual world]");
                return 1;
            }
            inte = strtok(cmdtext, idx);
            if(!strlen(inte))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /ircord [x] [y] [z] [Interior] [virtual world]");
                return 1;
            }
            world = strtok(cmdtext, idx);
            if(!strlen(world))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /ircord [x] [y] [z] [Interior] [virtual world]");
                return 1;
            }
            new x3 = strval(tmp);
            new y3 = strval(y);
            new z3 = strval(z);
            new interior2 = strval(inte);
            new world2 = strval(world);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                new Float:x2,Float:y2,Float:z2;
                x2 = x3;
                y2 = y3;
                z2 = z3;
                SetPlayerPos(playerid, x2, y2, z2);
                SendClientMessage(playerid, COLOR_GRAD1, "Voce foi teleportado pelo Admin!");
                SetPlayerInterior(playerid, interior2);
                SetPlayerVirtualWorld(playerid,world2);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[DUV/PEDIDO] FS OU SCRIPT ... - by danieltricolor12 - 25.07.2010, 16:10
Re: [DUV/PEDIDO] FS OU SCRIPT ... - by Michael_Atecubanos - 25.07.2010, 19:38
Re: [DUV/PEDIDO] FS OU SCRIPT ... - by [NWD]Tweener_ - 25.07.2010, 20:29
Re: [DUV/PEDIDO] FS OU SCRIPT ... - by danieltricolor12 - 26.07.2010, 15:03
Re: [DUV/PEDIDO] FS OU SCRIPT ... - by danielmondello - 26.07.2010, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)