SA-MP Forums Archive
[HELP] Surfing Player On Vehicle - 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: [HELP] Surfing Player On Vehicle (/showthread.php?tid=576060)



Deleted - MamadKz - 31.05.2015

Deleted


Re: [HELP] Surfing Player On Vehicle - M0HAMMAD - 31.05.2015

use ****** or search Goshadi ?
https://sampwiki.blast.hk/wiki/GetPlayerSurfingVehicleID
In Shayad komaket kone !


Re: [HELP] Surfing Player On Vehicle - MamadKz - 31.05.2015

daus in base on chizi k man mikham ni


Re: [HELP] Surfing Player On Vehicle - Abagail - 31.05.2015

pawn Код:
stock IsPlayerSurfingAVehicle(playerid)
{
     if(GetPlayerSurfingVehicleID(playerid) != INVALID_VEHICLE_ID) return 1;
   
     return 0;
}
wiki.sa-mp.com/wiki/GetPlayerSurfingVehicleID


Re: [HELP] Surfing Player On Vehicle - MamadKz - 01.06.2015

you can give me full this command + functions + publics and stocks?


Re: [HELP] Surfing Player On Vehicle - Alpay0098 - 01.06.2015

Can you explain more that how does /surf work? What does it going to do?


Re: [HELP] Surfing Player On Vehicle - Stanford - 01.06.2015

Quote:
Originally Posted by MamadKz
Посмотреть сообщение
you can give me full this command + functions + publics and stocks?
How are you supposed to learn when we will do all the scripting for you? the function is easy to use read the SA-MP wiki to discover how it really works and if you have any questions ask them here again..

However, you can use a one second timer and a loop through all the vehicles and check; For instance:

pawn Код:
public OneSecondTimer(playerid)
                   {
for(new i = 1; i <= GetVehiclePoolSize(); i++)
{
    if(GetPlayerSurfingVehicleID(playerid) == i)
    {
// Do whatever
}
}
I hope I helped any feedback would be appreciated!