29.03.2013, 12:18
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float: fX, Float: fY, Float: fZ;
GetPlayerPos(playerid, fX, fY, fZ);
if(admincar)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0x000000FF,"Welcome Admin in Vehicle");
}
else
{
SendClientMessage(playerid,0x000000FF,"You are not admin!");
SetPlayerPos(playerid, fX, fY, fZ);
}
}
return 1;
}