19.07.2017, 17:16
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 425)
{
if(GetPlayerTeam(playerid) != 9 && GetPlayerScore(playerid) < 2000)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, (z + 0.5));
SendClientMessage(playerid, 0xFF0000FF, "You must be in team army and must have the score 2000 to drive a Hunter!");
}
}