Ich habe ein Menu und Teleporations Script geschrieben und versteh nicht mehr warum es nicht geht hab schon einige fehler behoben.
Es ist mein erstes Script
#include <a_samp>
public OnPlayerConnect(playerid)
{
SendPlayerMessage(playerid,"/commmands für die Befehle");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/stunt", true) == 0)
{
SetPlayerPos(playerid, -2475.3152,-976.7531,998.5547);
GameTextForPlayer(playerid, "Wilkomen auf dem Airport in San Fierro");
return 1;
}
if(strcmp(cmdtext, "/tdm", true) == 0)
{
SetPlayerPos(playerid, -1549.9721,-433.7722,6.0325);
GameTextForPlayer(playerid, "Du bist jetzt Auserhalb des Airports");
return 1;
}
if(strcmp(cmdtext, "/worker", true) == 0)
{
SetPlayerPos(playerid, -2062.0009,237.6350,35.6760);
return 1;
}
if(strcmp(cmdtext, "/pimp", true) == 0)
{
SetPlayerPos(playerid, -2653.9995,1388.2767,7.1315);
return 1;
}
if(strcmp(cmdtext, "/golfer", true) == 0)
{
SetPlayerPos(playerid, -2642.6137,-274.9985,7.5364);
return 1;
}
if(strcmp(cmdtext, "/triade", true) == 0)
{
SetPlayerPos(playerid, -2157.5673,649.5484,52.3671);
return 1;
}
if(strcmp(cmdtext, "/mechanik", true) == 0)
{
SetPlayerPos(playerid, -1377.7827,466.0896,7.1875);
return 1;
}
if(strcmp(cmdtext, "/valet", true) == 0)
{
SetPlayerPos(playerid, -1755.4720,958.2040,24.8828);
return 1;
}
if(strcmp(cmdtext, "/medic", true) == 0)
{
SetPlayerPos(playerid, -2665.7836,635.6348,14.4531);
return 1;
}
if(strcmp(cmdtext, "/fbi", true) == 0)
{
SetPlayerPos(playerid, -1635.7287,664.8098,7.1875);
return 1;
}
{
new cmd[256],idx;
cmd = strtok(cmdtext,idx);
if(!strcmp(cmdtext,"/befehle",true))
{
SendClientMessage(playerid,"/teleports für Teleportationen");
SendClientMessage(playerid,"/rules für die Regeln");
SendClientMessage(playerid,"/cars für getunte autos");
return 1;
}
{
new cmd[256],idx;
cmd = strtok(cmdtext,idx);
if(!strcmp(cmdtext,"/teleports",true))
{
SendClientMessage(playerid,"/stunt für die Stuntzone");
SendClientMessage(playerid,"/tdm um wieder in die Tdm zu kommen");
SendClientMessage(playerid,"/worker für den spawnpoint der Worker");
SendClientMessage(playerid,"/pimp für den spawnpoint der Pimper");
SendClientMessage(playerid,"/golfer für den spawnpoint der Golfer");
SendClientMessage(playerid,"/triade für den spawnpoint der Triade");
SendClientMessage(playerid,"/mechanik für den spawnpoint der Mechaniker");
SendClientMessage(playerid,"/valet für den spawnpoint der Valet");
SendClientMessage(playerid,"/medic für den spawnpoint der Medic");
SendClientMessage(playerid,"/fbi für den spawnpoint der Fbi");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
{
#endif