Admin cars
#3

pawn Код:
new admincar;
 
admincar = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
 
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new PlayerVehicle[playerid] = GetPlayerVehicleID(playerid);
if(Vehicle == admincar)
{                      
if(pData[ playerid ][ P_LEVEL ] > 0) // change to your admin definition
{
SendClientMessage(playerid, YELLOW, "* Welcome Back Admin!");
} else {
SendClientMessage(playerid, RED, "* You got spooked by the alarm system");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Reply


Messages In This Thread
Admin cars - by Wesley221 - 05.05.2011, 09:49
Re: Admin cars - by Cameltoe - 05.05.2011, 09:57
Re: Admin cars - by [DDC]Delight - 05.05.2011, 09:59
Re: Admin cars - by Wesley221 - 05.05.2011, 10:00
Re: Admin cars - by [DDC]Delight - 05.05.2011, 10:02
Re: Admin cars - by [SFA]SpiRRiT - 05.05.2011, 10:04
Re: Admin cars - by Wesley221 - 05.05.2011, 10:07
Re: Admin cars - by [DDC]Delight - 05.05.2011, 10:10
Re: Admin cars - by Wesley221 - 05.05.2011, 10:14
Re: Admin cars - by [DDC]Delight - 05.05.2011, 10:15
Re: Admin cars - by Wesley221 - 05.05.2011, 10:23
Re: Admin cars - by MadeMan - 05.05.2011, 11:19
Re: Admin cars - by [SFA]SpiRRiT - 05.05.2011, 11:35
Re: Admin cars - by Wesley221 - 05.05.2011, 13:44
Re: Admin cars - by [DDC]Delight - 05.05.2011, 13:53
Re: Admin cars - by Wesley221 - 05.05.2011, 14:50
Re: Admin cars - by MadeMan - 05.05.2011, 14:52
Re: Admin cars - by Wesley221 - 05.05.2011, 15:03
Re: Admin cars - by Wesley221 - 06.05.2011, 11:14

Forum Jump:


Users browsing this thread: 2 Guest(s)