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

qeria saber se tem algum fs ou script q qndo eu escrevo(copio rs) as cordenadas de um local, eu vб direto pra lб ...
se tiver me passem =D
Reply
#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
#3

Antes quando digitava o nome ele apagava sozinho.
Reply
#4

vo tentar aqui esse codigo , se funfar aviso =D
_________________

da erro u.ъ
Reply
#5

if(!strcmp(cmdtext, "/savepos", true))
{
if(adminlevel[playerid] < 3) return 0;
else
if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
else
GetPlayerPos(playerid, xx, yy , zz);
new vehicleid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehicleid, xx, yy, zz);
SendClientMessage(playerid, COLOR_YELLOW, "You can now use /gotopos.");
playerposition[playerid] = 1;
return 1;
}
if(!strcmp(cmdtext, "/gotopos", true))
{
if(adminlevel[playerid] < 3) return 0;
else
if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
else
if(playerposition[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot gotopos because you didnt save any position.");
else

SetPlayerPos(playerid, xx, yy , zz);
SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to your destination.");

return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)