12.01.2012, 18:24
Well I have the problem that this command is not doing what it's supposted to
If you are team 2 it should say:
And if you are team 1 it should do and say:
But nothing is happening when player is entering the vehicle..
No problems while compiling
Код HTML:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == Missioncar) { if(GetPlayerTeam(playerid) == 2) { SendClientMessage(playerid, COLOR_WHITE, "<!>Head to the marker which is added to your minimap!"); SendClientMessage(playerid, COLOR_WHITE, "<!>If you succed in the mission you will be awarded!"); return 1; } if(GetPlayerTeam(playerid) == 1) { SendClientMessage(playerid, COLOR_WHITE, "<!>You must be USA team to drive this vehicle!"); RemovePlayerFromVehicle(playerid); return 1; } } return 1; }
Код HTML:
SendClientMessage(playerid, COLOR_WHITE, "<!>Head to the marker which is added to your minimap!"); SendClientMessage(playerid, COLOR_WHITE, "<!>If you succed in the mission you will be awarded!");
Код HTML:
SendClientMessage(playerid, COLOR_WHITE, "<!>You must be USA team to drive this vehicle!");
RemovePlayerFromVehicle(playerid);
No problems while compiling