19.06.2010, 02:04
how do i make it like there are random cars around sa if i randomly enter one it sends clientmessagetoall %s has commited a crime blah blah blah and sets wanted lvl 1-4+ >?
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new string[128], pNick[20];
GetPlayerName(playerid, pNick, sizeof pNick);
format(string, sizeof string, "%s (%d) has stolen a vehicle!", pNick, playerid);
SendClientMessageToAll(0xFF0000FF, string);
switch(GetPlayerWantedLevel(playerid))
{
case 0, 1, 2, 3, 4: SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +2);
case 5, 6: SetPlayerWantedLevel(playerid, 6);
}
}
return 1;
}
Originally Posted by Kar
dw. pragma tabsize 0
|
switch(bankid) {