- 0
IsPlayerInRangeOfPoint
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
SumX
Salut!
Am luat fs-ul lui xxspeedyxx cu semnalizarea...nu-l intreb pe el,pentru ca stiu ca nu-mi raspunde,asa ca:as vrea sa apara ael mesaj cand cineva semnalizeaza,nu tuturor celor care sunt pe server,cum a pus el,ci doar celor care sunt prin jurul celui ce semnalizeaza.Putin ajutor,va rog? Multumesc
[pawn]public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
if ( newkeys == KEY_LOOK_RIGHT )
{
if ( IsPlayerInAnyVehicle ( playerid ) )
{
if (antisigspam[playerid] == 0)
{
format ( string, sizeof ( string ), "{E60000}* %s {FFC0CB}a semnalizat spre dreapta.", pname( playerid ) );
SendClientMessageToAll( COLOR_PINK, string );
format ( string, sizeof ( string ), "*{FFC0CB}>>>>>>>>>>> {E60000}%s{FFC0CB} >>>>>>>>>>>", pname( playerid ) );
SendClientMessageToAll( COLOR_PINK, string );
antisigspam[playerid] = 1;
SetTimerEx("antispamtimer", ANTISIGSPAM_TIME*1000, false, "d", playerid);
}
else
{
format( string, sizeof ( string ), "Te rog asteapta {FFC0CB}%d {E60000}secunde pana sa semnalizezi din nou!", ANTISIGSPAM_TIME);
SendClientMessage( playerid, COLOR_ULTRARED, string );
}
}
}[/pawn]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts