[DUV/PEDIDO] FS OU SCRIPT ... -
danieltricolor12 - 25.07.2010
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
Re: [DUV/PEDIDO] FS OU SCRIPT ... -
Michael_Atecubanos - 25.07.2010
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;
}
Re: [DUV/PEDIDO] FS OU SCRIPT ... -
[NWD]Tweener_ - 25.07.2010
Antes quando digitava o nome ele apagava sozinho.
Re: [DUV/PEDIDO] FS OU SCRIPT ... -
danieltricolor12 - 26.07.2010
vo tentar aqui esse codigo , se funfar aviso =D
_________________
da erro u.ъ
Re: [DUV/PEDIDO] FS OU SCRIPT ... -
danielmondello - 26.07.2010
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;
}