Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:speed(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(SpeedBoost[playerid])
- {
- SpeedBoost[playerid] = 0; // aici e dezactivat
- SCM(playerid, COLOR_RED, "[Speed Boost]Ai dezactivat comanda pentru Speed Boost");
- }
- else
- {
- SpeedBoost[playerid] = 1; // aici e activat
- SCM(playerid, COLOR_GREEN, "[Speed Boost]Ai activat comanda pentru Speed Boost");
- }
- }
- return 1;
- }
- Si asta
- new SpeedBoost[MAX_PLAYERS];
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(newkeys & KEY_FIRE)
- {
- if(SpeedBoost[playerid] == 1)
- {
- new Float:vx, Float:vy, Float:vz;
- GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
- SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.8, vy *1.8, vz * 1.8);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment