Question about multipul numbers in "if"
#8

Quote:
Originally Posted by bigcomfycouch
Посмотреть сообщение
Faster and cleaner than calling GetPlayerSkin many times.

pawn Код:
public OnPlayerSpawn( playerid )
{
    switch ( GetPlayerSkin( playerid ) )
    {
        case 281 .. 283, 285 .. 287: SendClientMessage(playerid, COLOR_RED, "Police Spawn");
        case 274 .. 276: SendClientMessage(playerid, COLOR_RED, "Medic Spawn");
        case 105 .. 107, 269 .. 271: SendClientMessage(playerid, COLOR_RED, "Grove Spawn");
        case default: SendClientMessage(playerid, COLOR_RED, "Unmonitored Spawn");
    }
    return 1;
}
thats better... or it wont let u see the message at other skins.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)