trailer help.. - 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: trailer help.. (
/showthread.php?tid=87771)
trailer help.. -
lakierka - 22.07.2009
Код:
public priekaba()
{
for(new k = 0; k < MAX_PLAYERS; k++)
{
if(IsPlayerInVehicle(k, 514))
{
AttachTrailerToVehicle(584,514);
picaDB[k][Picanumber] = SetPlayerCheckpoint(k,picaarray[picaDB[k][Picanumber]][0],picaarray[picaDB[k][Picanumber]][1],picaarray[picaDB[k][Picanumber]][2],6.0);
}
else
{
DisablePlayerCheckpoint(k) ;
}
}
return 1;
}
Код:
SetTimer("priekaba",1000,false);
I'm trying to do trucker job, but when I enter in truck server does nothing.. No checkpoint's.. Can you tell me what's wrong?
Re: trailer help.. -
SiJ - 22.07.2009
Maybe try OnPlayerStateChange to check if player's state is driver and if player is in right vehicle and then attach the trailer..