Specific vehicle
#4

TRY THIS

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid) {
    for(new x=0; x<MAX_PLAYERS; x++) {
        if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && PlayerInfo[x][SpecID] == playerid) {
            TogglePlayerSpectating(x, 1);
            PlayerSpectateVehicle(x, vehicleid);
            PlayerInfo[x][SpecType] = ADMIN_SPEC_TYPE_VEHICLE;
        }
    }

    if(vehicleid == ANTIVEH)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][Level] >= 0)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Welcome Admin in Admin Restricted Vehicle.");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREEN, "balnh.");
                new Float:Health, Float:x, Float:y, Float:z; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health-25);
                GetPlayerPos(playerid,x,y,z); SetPlayerPos(playerid,x,y,z+5); PlayerPlaySound(playerid,1190,0.0,0.0,0.0); PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Specific vehicle - by Black Wolf - 23.09.2012, 04:43
Re: Specific vehicle - by Psymetrix - 23.09.2012, 04:49
Re: Specific vehicle - by Black Wolf - 23.09.2012, 04:54
Re: Specific vehicle - by Danyal - 23.09.2012, 04:58
Re: Specific vehicle - by Psymetrix - 23.09.2012, 05:03
Re: Specific vehicle - by Black Wolf - 23.09.2012, 05:04
Re: Specific vehicle - by Danyal - 23.09.2012, 05:12
Re: Specific vehicle - by Black Wolf - 23.09.2012, 05:15
Re: Specific vehicle - by Danyal - 23.09.2012, 05:16
Re: Specific vehicle - by Psymetrix - 23.09.2012, 05:16

Forum Jump:


Users browsing this thread: 2 Guest(s)