public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/berg", true)==0) { SetPlayerPos(playerid, -2432.5391,-1620.2317,526.8373); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_ORANGE, "Du bist wieder auf dem Mount Chiliad"); return 1; } if (strcmp(cmdtext, "/Fliegen", true)==0) { GivePlayerWeapon(playerid, 46, 1); SetPlayerPos(playerid, -2321.6790,-1684.5330,1500.3648); SendClientMessage(playerid, COLOR_PINK, "I believe, I can fly! I believe that I can touch the sky..."); GameTextForPlayer(playerid,"I believe, I can fly! ~n~ I believe that I can touch the sky...",5,4); return 1; } if (strcmp(cmdtext, "/help", true)==0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Die Commands in diesem Gamemode sind:"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "/Berg : Da kommt man zurück zum Spawnpoint"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "/Fliegen : Da teleportiert man sich nach gaaaaaaanz"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "weit oben und bekommt einen Fallschirm"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "/Cafe : Bringt einen nach Saint Mark´s Bistro."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "/Admin : zeigt die Admins an."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "/ann 1-6 oder /announce 1-6 : Schreibt einen Text in der mitte des bildschirms."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mehr Commands werden später hinzugefügt."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Achja, für filterscript-Commands tippt /sHelp ein!"); return 1; } if (strcmp(cmdtext, "/Cafe", true)==0) { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, -781.8113,489.3232,1376.1953); return 1; } if (strcmp(cmdtext, "/Admin", true)==0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Hauptadmin: MAXX (10)"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Admins: Tobi (5) , PlayaArtur (5)"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Moderator: Slimshady (3)" ); return 1; } } else if ((strcmp(command, "ann1", true) == 0 || strcmp(command, "announce1", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,1); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } else if ((strcmp(command, "ann2", true) == 0 || strcmp(command, "announce2", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,3); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } else if ((strcmp(command, "ann3", true) == 0 || strcmp(command, "announce3", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,3); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } else if ((strcmp(command, "ann4", true) == 0 || strcmp(command, "announce4", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,4); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } else if ((strcmp(command, "ann5", true) == 0 || strcmp(command, "announce5", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,5); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } else if ((strcmp(command, "ann6", true) == 0 || strcmp(command, "announce6", true) == 0) && CL_announce != -1 && Level[playerid] >= CL_announce) { new text[256],seconds; new jndex = index; seconds = strval(admin_strtok(cmdtext,jndex)); // seconds = 15; if(seconds == 0) { seconds=15; jndex=index; } text = admin_strrest(cmdtext, jndex); format(temp,sizeof(temp),"~w~%s",text); seconds = seconds * 1000; GameTextForAll(temp,seconds,6); printf(" |--announce > %s > %s",Name[playerid],text); return 1; } return 0; }