Jump to content
  • 0

pomoc problem s padanim hry-id kontrola nepracuje


Guest poblib

Dotaz

tu davam iba cast skryptu v ktorej musi byt chyba prosim povedzte mi co mam zle/

dcmd_car(playerid, params[])

{

new car;

car = strval(params);

if (!strlen(params)) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Použitie: /car [idauta]");

// else if(admin[playerid] < 5) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Toto sú iba Admin [ level 5 ] príkazy.");

 

 

if(car == -1)

{

 

if(car < 400 || car > 611) return SendClientMessage(playerid, 0xAFAFAFAA, "[ ! ] Zle ID [400-611]");

}

 

if(Aut == 15) return SendClientMessage(playerid, 0xAFAFAFAA, "[ 15/15 ] Vozidlo nebolo vytvorene,prilis vela ");

 

else if(Aut < 15)

{

new Float:Uhel,Float:X,Float:Y,Float:Z;

GetPlayerFacingAngle(playerid,Uhel);

GetPlayerPos(playerid, X,Y,Z);

InfrontOf(playerid, X, Y, 4.0);

Auticek[Aut] = CreateVehicle(car, X,Y,Z, Uhel+90, black, black, 600000);

Aut++;

new string[80];

format(string, 80, "[%d/15][ ! ] Vytvoril si vozidlo,pouzi /dcar na znicenie.", Aut);

SendClientMessage(playerid, 0xAFAFAFAA, string);

}

return true;

}

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...