Hallo,
Was muss ich wo einsetzen damit ich im Auto gemacht werde, wenn ich mir ein respawne.
dcmd_vehicle(playerid,params[])
{
if(Player[playerid][admin] < 1){
return SendClientMessage (playerid,WEIS,"SERVER: Unknown command.");
}
new veh,color1,color2;
if(sscanf(params,"ddd",veh,color1,color2)){
return SendClientMessage(playerid,WEIS,"Usage: /vehicle [vehicleID] [color1] [color2]");
}
if(veh < 400){
return SendClientMessage(playerid,WEIS,"INVALID vehID![400-611]");
}
if(veh > 611){
return SendClientMessage(playerid,WEIS,"INVALID vehID![400-611]");
}
if(color1 < 0){
return SendClientMessage(playerid,WEIS,"INVALID color1ID![0-126]");
}
if(color1 > 126){
return SendClientMessage(playerid,WEIS,"INVALID color1ID![0-126]");
}
if(color2 < 0){
return SendClientMessage(playerid,WEIS,"INVALID color2ID![0-126]");
}
if(color2 > 126){
return SendClientMessage(playerid,WEIS,"INVALID color2ID![0-126]");
}
new Float:x , Float:y , Float: z;
GetPlayerPos(playerid,x,y,z);
CreateVehicle(veh, x, y, z, 0, color1, color2, 123456789);
SetPlayerPos(playerid,x,y,z);
SetVehiclePos(veh,x,y,z);
return 1;
}
MFG.