[HELP] score for enter vehicle needed [HELP]
#4

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == Your Vehicles ID && GetPlayerScore(playerid) < Score For Players)
    {
        new Float:pX,Float:pY,Float:pZ;
        GetPlayerPos(playerid, pX,pY,pZ);
       SetPlayerPos(playerid, pX,pY,pZ + 3);
    }
    return 1;
}
Ex :
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 423 && GetPlayerScore(playerid) < 1500)
    {
        new Float:pX,Float:pY,Float:pZ;
        GetPlayerPos(playerid, 11,111,11,111,1111); // this is for your coordinates
        SetPlayerPos(playerid, 22,222,22,222,2222 + 3); // this is for your coordinates
    }
    return 1;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)