08.06.2010, 15:47
1.
im not sure because im new on scripting too but use instead of strlen the 3 number of your letters
hope helped and for the 2 question i dont know.
im not sure because im new on scripting too but use instead of strlen the 3 number of your letters
Код:
if(!strcmp(cmdtext, "/do", true, 3)) { if (!cmdtext[3]) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /do [Situation]"); new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof name); format(cmdtext, 128, "* %s ( %s ) ", cmdtext[4], name ); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); for(new i, m = GetMaxPlayers(); i < m; i++) if (IsPlayerConnected(i)) { if (IsPlayerInRangeOfPoint(i, 15.0, x, y, z)) SendClientMessage(i, COLOR_PURPLE, cmdtext); } return 1; }