crimes
#1

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+ >?
Reply
#2

pawn Код:
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;
}
Something like that anyway
Reply
#3

thxs looks right i'll see what i can do
Reply
#4

Sorry for the horrible indentation, every time I paste code it does that
Reply
#5

dw. pragma tabsize 0
Reply
#6

Lazy
Reply
#7

so like i gotta put case 0:
ifvehicleid etc... then put sendclientmessage.

am i going right>?
Reply
#8

Quote:
Originally Posted by Kar
dw. pragma tabsize 0
NOOB!
Reply
#9

Do you not know how switches work in PAWN?
Reply
#10

yea i know how
Код:
switch(bankid)  {
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)