driveby problem
#4

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)// OnPlayerEnterVehicle callback, gets called when a player enters a vehicle.
{
    if(GetPlayerWeapon(playerid) == 29)// If player has MP5
    {
        return 1;// Returns value ( nothing. )
    }
    else// What happens if he doesn't have a MP5
    {
        SendClientMessage(playerid, 0xAA3333AA, " You canno't drive-by with a desert eagle !");// Sending a message
        GivePlayerWeapon(playerid, 0, 1); // Giving him fist, so he won't be able to use it.
        return 1;// Returning value for SendClientMessage
    }
    return 1; // Returning value, a must have.
}
Reply


Messages In This Thread
driveby problem - by rinori - 18.09.2011, 17:21
Re: driveby problem - by park4bmx - 18.09.2011, 17:30
Re: driveby problem - by Issam - 18.09.2011, 17:32
Re: driveby problem - by Fat - 18.09.2011, 17:38
Re: driveby problem - by rinori - 18.09.2011, 18:42
Re: driveby problem - by Fat - 18.09.2011, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)