22.11.2009, 10:32
Right I have a /s command for shouting. I added it recently but I have found out that now when I do /seat it sais "Savage997 Shouts: at."
This is my shout command
And this is my seat command
Can anyone help me out so that both commands work together. Help would be much appriciated.
This is my shout command
Код:
if(!strcmp(cmdtext, "/s", true, 2)) { if(!cmdtext[2])return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /s(hout) [text]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "%s shouts: %s ", str, cmdtext [3]); ProxDetector(50.0, playerid, str, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 1; }
Код:
if(strcmp(cmdtext, "/seat", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { ApplyAnimation(playerid,"MISC","SEAT_LR",4.1,0,0,0,1,1); return 1; } }