Immer wenn ich das:
if(!strcmp(strget(cmdtext,0),"/goto"))
{
if(Spieler[playerid][Admin] >= 2)
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,Rot,"Benutze: /goto [ID]");
new string[128];
new spieler[MAX_PLAYER_NAME];
new admin[MAX_PLAYER_NAME];
new id = strval(strget(cmdtext,1));
GetPlayerName(playerid,admin,sizeof(admin));
GetPlayerName(id,spieler,sizeof(spieler));
format(string, sizeof(string), "%s hat sich zu dir geportet!", admin);
SendClientMessage(id, Gelb, string);
format(string, sizeof(string), "Du hast dich zu %s geportet!",spieler);
SendClientMessage(playerid, Gelb, string);
new Float:sx1,Float:sy1,Float:sz1;
new Float:sa1;
GetPlayerPos(id, sx1, sy1, sz1);
GetPlayerFacingAngle(id, sa1);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(playerid, sx1, sy1, sz1);
SetVehicleZAngle(playerid, sa1);
}
else
{
SetPlayerPos(playerid, sx1, sy1, sz1);
SetPlayerFacingAngle(playerid, sa1);
}
} else {
SendClientMessage(playerid, Rot, "Du bist kein Admin/Supporter !");
}
}
if(!strcmp(strget(cmdtext,0),"/get"))
{
if(Spieler[playerid][Admin] >= 2)
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,Rot,"Benutze: /get [ID]");
new string[128];
new spieler[MAX_PLAYER_NAME];
new admin[MAX_PLAYER_NAME];
new id = strval(strget(cmdtext,1));
GetPlayerName(playerid,admin,sizeof(admin));
GetPlayerName(id,spieler,sizeof(spieler));
format(string, sizeof(string), "%s hat dich zu sich geportet!", admin);
SendClientMessage(id, Gelb, string);
format(string, sizeof(string), "Du hast %s zu dir geportet!",spieler);
SendClientMessage(playerid, Gelb, string);
new Float:sx1,Float:sy1,Float:sz1;
new Float:sa1;
GetPlayerPos(playerid, sx1, sy1, sz1);
GetPlayerFacingAngle(playerid, sa1);
if(IsPlayerInAnyVehicle(id))
{
SetVehiclePos(id, sx1, sy1, sz1);
SetVehicleZAngle(id, sa1);
}
else
{
SetPlayerPos(id, sx1, sy1, sz1);
SetPlayerFacingAngle(id, sa1);
}
} else {
SendClientMessage(playerid, Rot, "Du bist kein Admin/Supporter !");
}
}
Einfüge stürzt Pawno ab wenn ich F5 drücke