10.02.2013, 17:04
Quote:
Here you go
Код:
case 0,1,2: { engineOn[GetPlayerVehicleID(playerid)] = true; TogglePlayerControllable(playerid, true); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* Vehicle engine starts (( %s )).", sendername); SendClientMessage(playerid, COLOR_RED, "The engine started normally."); ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED); engineOn[vehicle] = 1; } case 3: { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* Vehicle engine doesn't start (( %s )).", sendername); ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED); engineOn[vehicle] = 0; } } } else { engineOn[vehicle] = 0; } } return 1; } |