24.08.2013, 19:39
Use it under onplayerstatechange
if(GetPlayerVehicleID(playerid) == 520 || GetPlayerVehicleID(playerid) == hunter vehicle id || GetPlayerVehicleID(playerid) == rhino vehicle id)
{
if(//here team name of those who will not allow to get in these vehicles== 1)
{
new Float: x , Float: y , Float: z;
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x,y 1.0,z);
SendClientMessage(playerid, color, "your error message here");
};
};
if(GetPlayerVehicleID(playerid) == 520 || GetPlayerVehicleID(playerid) == hunter vehicle id || GetPlayerVehicleID(playerid) == rhino vehicle id)
{
if(//here team name of those who will not allow to get in these vehicles== 1)
{
new Float: x , Float: y , Float: z;
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x,y 1.0,z);
SendClientMessage(playerid, color, "your error message here");
};
};