05.03.2013, 08:45
hey guys i tried to script a vehicle god mode , it compiles but it doesnt work 
anyone knows how to fix that?

anyone knows how to fix that?

Код:
//on top of the script new vgod[MAX_PLAYERS]; //OnPlayerConnect vgod[playerid] = 1; //OnPlayerDisconnect vgod[playerid] = 0; //command CMD:vgod(playerid, params[]) { if(vgod[playerid] == 0) { GameTextForPlayer(playerid, "VEHICLE GOD ~r~enabled", 3000, 5); vgod[playerid] = 1; } if(vgod[playerid] == 1) { GameTextForPlayer(playerid, "VEHICLE GOD ~r~disabled", 3000, 5); vgod[playerid] = 0; } return 1; } //OnPlayerEnterVehicle if(vgod[playerid] == 0) { return 1; } if(vgod[playerid] == 1) { SetVehicleHealth(playerid, 10000); }