05.07.2014, 17:27
preguiзa й grande hein --' desse jeito nгo vai acabar nunca o GM
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[128], idx, tmp[128]; cmd = strtok(cmdtext, idx); if (strcmp(cmd, "/mudartextdraw", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FF0000}Primeiro, logue na RCON."); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "{CCCCCC}Use: /mudartextdraw <mensagem>"); TextDrawSetString(NomeDaTextDraw, tmp); return 1; } return 0; }