Einfach ersetzen...
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/restart",true)==0)
{
if(IsPlayerAdmin(playerid))
{
SendRconCommand("gmx");
}
else
{
SendClientMessage(playerid,0xFF0055FF,"Dir ist es nicht erlaubt den Server Neu zu Starten");
}
return 1;
}
if(strcmp(cmdtext,"/descar", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new fid;
fid = GetPlayerVehicleID(playerid);
DestroyVehicle(fid);
SendClientMessage(playerid,0x2DFF00FF,"Sie haben das Auto zerstört.");
}
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
//Rest