29.07.2015, 20:21
Hey guys, i hope you can help me with the Support-System.
I cant write as Support with /sup, i don't know why. I want to make a command: /asup for Support.
But i don't know how i do this. I hope you can help me.
Here is the code:
I cant write as Support with /sup, i don't know why. I want to make a command: /asup for Support.
But i don't know how i do this. I hope you can help me.
Here is the code:
Код:
COMMAND:sup(playerid,params[]) { new text[256]; if(sscanf(params,"s[128]",text)) { SendClientMessage(playerid, COLOR_GREY,"* /sup [Message]"); } else { if(TicketAnwered[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY,"You aren not in a active report at the moment!"); } else if(TicketAnswered[playerid] == 1) { new pID = YourSupport[playerid]; new answer[128], answer2[128], TheQuestion[MAX_PLAYER_NAME], TheSupport[MAX_PLAYER_NAME]; GetPlayerName(playerid, TheQuestion, sizeof (TheQuestion)); GetPlayerName(pID, TheSupport, sizeof (TheSupport)); format(answer, sizeof (answer),"--> %s", text); SendClientMessage(playerid, COLOR_YELLOW, answer); format(answer2, sizeof (answer2), "%s writes: %s", TheQuestion, text); SendClientMessage(pID, COLOR_YELLOW, answer2); } } return 1; }