- 0
MaxAmmo & Vehicles
-
Similar Content
-
- 1 answer
- 688 views
-
- 0 replies
- 413 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Ph0eniX
Salutare , as putea face la comanda maxammo sa imi dea munitie infinita doar la anumite arme? Si daca da, cum?
----------------------------------------------------------------------------------------------
Cum fac sa nu scriu toate id'urile masinilor la comanda /godcar ? Adica vreau de exemplu ca la masina cu id'ul 432
sa nu poata fi folosita comanda (eu cred ca trebuie sa scriu toate id'urile...) se poate sa fac cumva fara sa scriu toate
id'urile ? Si daca da...cum? Daca nu merge ... datimi un exemplu cum sa pun toate masinile
Mersi.
----------------------------------------------------------------------------------------------
stock MaxAmmo(playerid) { new slot, weap, ammo; for(slot = 0; slot < 14; slot++) { GetPlayerWeaponData(playerid, slot, weap, ammo); if(IsValidWeapon(weap)) { GivePlayerWeapon(playerid, weap, 99999); } } return 1; }CMD:godcar(playerid,params[]) { if(IsPlayerAdmin(playerid) || AccInfo[playerid][Level] >= 6) { if(IsPlayerInAnyVehicle(playerid)) { if(AccInfo[playerid][GodCar] == 0) { AccInfo[playerid][GodCar] = 1; SendCommandToAdmins(playerid,"GodCar"); SendClientMessage(playerid,green,"Vehicle GodMod ON"); } else { AccInfo[playerid][GodCar] = 0; SendClientMessage(playerid,red,"Vehicle GodMod OFF"); } return 1; } else return SendClientMessage(playerid,red,"ERROR: You need to be in a car to use this command"); } else return ErrorMessages(playerid, 5); }public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }7 answers to this question
Recommended Posts