random things i need help with - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: random things i need help with (
/showthread.php?tid=187172)
random things i need help with -
WillyP - 01.11.2010
okay, i got a short list of things i need :P
1. IsPlayerInAnyVehicle < is that exisiting?
IsVehicleOccupied < i tried to make myself but i didnt get it to work
and a veh variable to save all car stats to a playerfile
any help with these? thanks
Re: random things i need help with -
SampStunta - 01.11.2010
With the car stats, you'll need to learn MySQL
Re: random things i need help with -
Bessensap - 01.11.2010
pawn Код:
stock IsVehicleOccupied(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
{
if(GetPlayerVehicleID(i) == vehicleid)
{
return 1;
}
}
}
return 0;
}
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle
Search.