SA-MP Forums Archive
if windows closed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: if windows closed (/showthread.php?tid=562091)



if windows closed - b00m112 - 06.02.2015

PHP код:
{
  
format(stringsizeof(string), "[Aknad Kinni]%s ьtleb: %s",RPN(playerid), text);
  
ProxDetector(12.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  
format(stringsizeof(string), "%s ьtleb: %s"RPNU(playerid), text);
  
KirjutaLogi("chat"string);

[Aknad kinni] = windows closed

I want if someone talk inside the car then people outside cant see this..*

2) If admin goes to /aod then it set admin name throght ini file.. Example there is line AName = Kalle, then it set player name Kalle.


Re: if windows closed - CalvinC - 06.02.2015

Loop through all players and check if they're in the same vehicle as the talking player, if they are, send them the message.