Hallo!
Ich habe keine Ahnung vom Scripten deswegen eine kurze Frage an euch:
Wieso geht der /orten befehl nicht? Hier der Script Teil:
/*/======== ORTEN ==========//
if(strcmp(cmd, "/orten", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Polizist!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /orten [Spieler ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Falsche ID!");
}
}
return 1;
}*/
/*//======== ORTEN Verfolgen ==========//
if(strcmp(cmd, "/orten", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /orten [Spieler ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(OrtenAktiv[playerid]==0)
{
OrtenAktiv[playerid] = 1;
OrtenTimer1[playerid] = SetTimerEx("OrtenTimer",1000,1,"ii",playerid,giveplayerid);
}
else
{
OrtenAktiv[playerid]=0;
DisablePlayerCheckpoint(playerid);
KillTimer(OrtenTimer1[playerid]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Falsche ID!");
}
}
return 1;
}*/