Hallooooo
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if (strcmp("/awaffen", cmdtext, true, 10) == 0) {
if(Spieler[playerid][Admin]<1) {
}
else {
ShowPlayerDialog(playerid, adminweapons, 2, "ADMIN Waffenmenü", "Schlagwaffen\nWurfwaffen\nPistolen\nSchrotflinten\n(Micro-)SMG's\nGewehre\nSchweres Geschütz\nVerschiedenes\nItems\nRucksackbomben", "Kategorie öffnen", "Abbrechen");
}
return 1;
}
if(strcmp(cmd, "/n", true) == 0) {
if(IsPlayerConnected(playerid)) {
if(Spieler[playerid][SANEWS] == 1) {
new text[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof (name));
format(text, sizeof(text), "Newsreporter %s: %s",name,cmdtext[2]);
SendClientMessageToAll(COLOR_LIGHTBLUE,text);
}
}
return 1;
}
if (strcmp("/pd", cmdtext, true) == 0) {
if(IsPlayerConnected(playerid)) {
MoveObject(PdTor, 1597.4130859375, -1638.1239013672, 15.202722549438 , 4);
SetTimer("ClosePdTor", 5000, 0);
}
return 1;
}
if (strcmp("/fbi", cmdtext, true) == 0) {
if(IsPlayerConnected(playerid)) {
MoveObject(FBITor, 770, -1330.0888671875, 12.963174819946 , 4);
SetTimer("CloseFBITor", 5000, 0);
}
return 1;
}
if (strcmp("/ad", cmdtext, true) == 0) {
if(IsPlayerConnected(playerid)) {
MoveObject(AdTor, 924.01934814453, -1233.9144287109, 16.046480178833 , 4);
SetTimer("CloseAdTor", 5000, 0);
}
return 1;
}
if (strcmp("/kaufen", cmdtext, true, 12) == 0) {
if(IsPlayerInRangeOfPoint(playerid,2, -22.2623,-138.3866,1003.5469))
ShowPlayerDialog(playerid, 3, 2, "Menü", "Bier $5\nPizza $7\nWeed $50", "Select", "Exit");
return 1;
}
if (strcmp("/stadtplan", cmdtext, true, 12) == 0) {
if(IsPlayerInRangeOfPoint(playerid,2, 1719.5884,-1624.5590,20.2113))
ShowPlayerDialog(playerid, 4, 2, "guide", "24/7 Shop \nWaffen Laden\nNoobspawn\nPolizei", "Select", "Exit");
return 1;
}
}
function "OnPlayerCommandText" should return a value
MfG