28.03.2010, 18:49
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] == TEAM_MEDIC && vehicleid == /*Put one of the cop cars vehicle ID's here*/)
{
new Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SendClientMessage(playerid, COLOR, "This is a police team vehicle!!");
}
return 1;
}