Quote:
Originally Posted by Naruto_Emilio
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3)) { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [ACTION]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "* %s %s", str, cmdtext[4]); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 40.0, x, y, z)) { SendClientMessage(i, COLOR_LIME, str); } } } return 1; }
Try my code
|
Thanks matey. Do you have msn by any chance? I'm pushing a big project.