/rtt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /rtt (
/showthread.php?tid=420499)
/rtt -
Akcent_Voltaj - 05.03.2013
respawns Truck and trailer(IsATLCar -- IsATrailer) only if their unwanted..
PHP код:
if(strcmp(cmd, "/rtt", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
return 1;
}
new bool:unwanted[MAX_VEHICLES];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)]=true;
}
}
for(new v = 328; v <= 336; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
for(new v = 337; v <= 345; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Toate vehicule de la jobul 'Transport Lapte' sau respawnat de %s!", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}
Re: /rtt -
Akcent_Voltaj - 05.03.2013
anyone?please help..please help wow from 1000 people from this forum none of them that can help..
Re: /rtt -
MehranGta - 05.03.2013
what /rtt you want to do?
Re: /rtt -
Akcent_Voltaj - 05.03.2013
i said up..it respawns truck and trailer if im in them..i dont want that!
Re: /rtt -
mamorunl - 05.03.2013
pawn Код:
for(new v = 328; v <= 336; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
for(new v = 337; v <= 345; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
Dafuq does this do? What is the use in this? Keep it in one and add a AND statement to the if(!unwanted..) I believe this one was already covered in another thread.
Re: /rtt -
Akcent_Voltaj - 05.03.2013
nope..it was /rac i put it in one