[DUV/PEDIDO] FS OU SCRIPT ...
#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


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)