onplayerentervehicle
#5

Use it under OnplayerUpdate()
Код:
      
public OnPlayerUpdate(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    new vid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vid) == 425 && GetPlayerScore(playerid) < 5000)
    {
        SendClientMessage(playerid, 0xFF0000FF, "You need 5000 score to drive the Hunter!"); 
        SetPlayerPos(playerid, X, Y, Z+1);
    }
   return 1;
}
Reply


Messages In This Thread
onplayerentervehicle - by Extraordinariness - 19.03.2014, 13:15
Re: onplayerentervehicle - by MP2 - 19.03.2014, 13:19
Re: onplayerentervehicle - by Extraordinariness - 19.03.2014, 13:22
Re: onplayerentervehicle - by MP2 - 19.03.2014, 13:29
Re: onplayerentervehicle - by VishvaJeet - 19.03.2014, 13:45
Re: onplayerentervehicle - by MP2 - 19.03.2014, 13:48
Re: onplayerentervehicle - by Knappen - 19.03.2014, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)