brauch hilfe mit dne befhel /veh
Hi leute bruach hilf ebi dne befhel veh
if(!strcmp(strget(cmdtext, 0), "/veh")) {
if(IsPlayerAdmin(playerid)) {
if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,0xFF0000AA,"You are in a Vehicle, are?"); } else {
new autoid = strval(strget(cmdtext, 1));
new farbe1 = strval(strget(cmdtext, 2));
new farbe2 = strval(strget(cmdtext, 2));
if(autoid <= 399) { SendClientMessage(playerid,0xFF0000AA,"Incorrect CarID"); }
if(autoid >= 612) { SendClientMessage(playerid,0xFF0000AA,"Incorrect CarID"); }
else {
new Float:x, Float:y, Float:z, Float:za, gla;
GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,za); gla = CreateVehicle(autoid,x,y,z,za,farbe1,farbe2,-1); PutPlayerInVehicle(playerid,gla,0); }}}
return 1;
}
Hir ist er einaml abe rich möchte das es Alle Können also alle user und nciht nru die admins