ocmd:gotocar(playerid,params[])
{
if(isPlayerAnAdmin(playerid,2))
{
new vID;
new Float:x, Float:y, Float:z;
if(sscanf(params,"u",vID)) return SendClientMessage(playerid,CMDBLAU,"/gotocar [ID]");
GetVehiclePos(vID,x,y,z);
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid,x+5,y+5,z);
return 1;
}
else
{
SetPlayerPos(vID,x+5,y+5,z);
SendClientMessage(playerid,GRAU,"Teleportiert");
return 1;
}
}
else
{
SendClientMessage(playerid,ROT,"Du hast nicht die Rechte.");
return 1;
}
}
ocmd:getcar(playerid,params[])
{
if(isPlayerAnAdmin(playerid,2))
{
new vID;
new Float:x, Float:y, Float:z;
if(sscanf(params,"u",vID)) return SendClientMessage(playerid,CMDBLAU,"/getcar [ID]");
GetPlayerPos(playerid,x,y,z);
SetVehiclePos(vID,x+5,y+5,z);
return 1;
}
else
{
SendClientMessage(playerid,ROT,"Du hast nicht die Rechte.");
return 1;
}
}
keine errors oder warns funk einfach nicht...