Quote:
Originally Posted by Finnick
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;
|
what the actual frick
MikE1990 already answered, you pretty much copied his code but added random stuff, which won't make the code work.
OT: Just add "SendClientMessage(playerid, -1, "You need at least 1'500 score to use the Rhino!");" under
MikE1990's position checks.