30.08.2010, 15:08
Quote:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsPlayerAdmin(playerid) == 0) { SendClientMessage(playerid, RED, "Error: This Vehicle Is Only For Admins."); SetPlayerHealth(playerid, 0); } return 1; } |
pawn Код:
OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsPlayerAdmin(playerid) == 0)
{
SendClientMessage(playerid, RED, "Error: This Vehicle Is Only For Admins.");
SetPlayerHealth(playerid, 0);
}
else
{
SendClientMessage(playerid,RED,"Welcome admin!");
}