- 0
Problema la /veh
-
Similar Content
-
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
Neooooo
Problema intalnita (descriere):Deci ... cand scriu /veh se intampla tot ce trebuie adica comanda a fost executata cum trebuie... dar totusi imi scrie : Comanda aceasta nu exista
Ero(area / rile) / warning-(ul / urile):Niciuna
Liniile de cod / sursa / script-ul(obligatoriu):Mai jos
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da..
CMD:veh(playerid, params[]) { new vehid; new vcolor1; new vcolor2; new string1[100]; if(sscanf(params, "ddd", vehid, vcolor1, vcolor2)) return SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Folosire: /veh [carid] [color1] [color2]"); if(vehid < 400 || vehid > 611) return SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid ID! [ Id-ul trebuie sa fie intre 400 - 611 ]"); if(vcolor1 < 0 || vcolor1 > 255 || vcolor2 <0 || vcolor2 > 255 ) return SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid ID Color! [ Id-ul trebuie sa fie intre 0 - 255 ]"); { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateVehicle(vehid, x + 3, y, z, 0, vcolor1,vcolor2, -1); SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Masina a fost spawnata la locatia ta!"); format(string1,sizeof(string1), "SERVER: {FFFFFF}Ti-ai spawnat un "ROSU"%s "ALB"[Color1: %d , Color2: %d].", NumeMasini[vehid - 400],vcolor1,vcolor2); SendClientMessage(playerid, COLOR_LIGHTRED,string1); VehicleInfo[vehid][IsAnAdminCar] = 1; } return 1; }
Edited by Neooooo2 answers to this question
Recommended Posts