24.09.2011, 17:21
Hello all i have created an simple drag map/race
and i have created an script for auto finish race
here is the script of auto finish:
And if i am in Range of point i get some messages.

But.. i need just 1 message not a spam with Finish race (messages)
I need help
(SORRY FOR MY BAD ENGLISH)
IF ANYONE HELP ME HE GET +1
and i have created an script for auto finish race
here is the script of auto finish:
Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 30.0, 4621.3721,-5468.7544,16.0294))
{
GivePlayerMoney(playerid, LiveMoney);
SendClientMessage(playerid,0x21DD00FF,"[Greats]: You have FINISHED the /drag race!");
SetPlayerPos(playerid,1359.2667,-2667.1755,13.5391);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, 30);
format(string, 128, "{09FE00}[Race]: {FFFFFF}%s {09FE00}have finished the {FFFFFF}(/drag){09FE00} race.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
}
return 1; // Send this update to other players.
}

But.. i need just 1 message not a spam with Finish race (messages)
I need help
(SORRY FOR MY BAD ENGLISH)
IF ANYONE HELP ME HE GET +1


