02.11.2013, 18:42
Well..and Idea would be to choose wich vehicle model each team can use ... for example :
This is just an example,it depends on your variables and how your gamemode stores data ( INI or MYSQL)
pawn Код:
// at the top of your gamemode :
new playerteam[MAX_PLAYERS];
// then at OnPlayerEnterVehicle :
new carid = GetPlayerVehicleID(playerid);
new carmodel = GetVehicleModel(carid);
if(carmodel == 492 && playerteam[playerid] == grove))
{
SendClientMessage(playerid, COLOR_WHITE, "Welcome to your car!");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not part of the Grove Team");
}