Help Whit This +Reputation
#1

Код:
    }
            default:
			{

                SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
                SendClientMessage(playerid, yellow, "** - VEHICLE CMDS: /lock (Lock the vehicle) - /cw (Send a message to the passengers in your car) - /ej (Eject a player from your vehicle) - /ejall (Eject all passengers from your vehicle)**");
                new string[64];
                format(string, sizeof(string), "*CRIME* Vehicle Theft - Wanted Level %d", GetPlayerWantedLevel(playerid));
                SendClientMessage(playerid, red, string);
            }
        }
    }
Want to make that when a player enter vehicle he have a 1 out of 5 chance to get wanted.Please help Me Thanks
Reply
#2

PHP код:
                SendClientMessage(playeridyellow"** - VEHICLE CMDS: /lock (Lock the vehicle) - /cw (Send a message to the passengers in your car) - /ej (Eject a player from your vehicle) - /ejall (Eject all passengers from your vehicle)**");
                new 
string[64];
                if(
random(4) < 1)
                {
                    
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+1);
                }
                
format(stringsizeof(string), "*CRIME* Vehicle Theft - Wanted Level %d"GetPlayerWantedLevel(playerid));
                
SendClientMessage(playeridredstring); 
This will do it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)