30.07.2009, 05:28
Try using switch, its less messy:
Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) { switch(streamid) { case copcp: SendClientMessage(playerid,COLOR_YELLOW, "[ ! ] To get your cop job, type /getcop "); case hitmancp: SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] To get your hitman job, type /gethitman"); case mechaniccp: SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] To get your mechanic job, type /getmechanic"); case mediccp: SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] To get your medic job, type /getmedic"); case thiefcp: SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] To get your thief job, type /getthief"); } return 1; }