04.03.2011, 21:09
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 123) // Switch 123 to your vehicle ID
{
if(gTeam[playerid] == TEAM_COP) // or GetPlayerTeam
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid,X+2,Y,Z);
SendClientMessage(playerid,COLOR,"You are cop. You must defend this vehicle from stealers!");
return 1;
}
else
{
return 1;
}
}
return 1;
}