SA-MP Forums Archive
[SUGGESTION]SendClientMessageToAll Shunt - 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: [SUGGESTION]SendClientMessageToAll Shunt (/showthread.php?tid=291990)



[SUGGESTION]SendClientMessageToAll Shunt - 435076378 - 22.10.2011

pawn Код:
SendClientMessageToWorld(0xFFFFFFAA,text);
SendClientMessageToInterior(0xFFFFFFAA,text);
SendClientMessageToVehicle(0xFFFFFFAA,text);
SendClientMessageToTeam(0xFFFFFFAA,text);
=Equal
SendClientMessageToAllWorld(GetPlayerVirtualWorld(playerid),0xFFFFFFAA,text);
SendClientMessageToAllInterior(GetPlayerInterior(playerid),0xFFFFFFAA,text);
SendClientMessageToAllVehicle(GetPlayerVehicleID(playerid),0xFFFFFFAA,text);
SendClientMessageToAllTeam(GetPlayerTeam(playerid),0xFFFFFFAA,text);
我服了你们了,这么简单都看不懂。


Re: [SUGGESTION]SendClientMessageToAll Shunt - Libra_PL - 22.10.2011

Why do you need to send a message to vehicle?


Re: [SUGGESTION]SendClientMessageToAll Shunt - Zh3r0 - 22.10.2011

All 4 are scriptable.


Re: [SUGGESTION]SendClientMessageToAll Shunt - 435076378 - 22.10.2011

Because there are enemies outside the vehicle


Re: [SUGGESTION]SendClientMessageToAll Shunt - 435076378 - 22.10.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
All 4 are scriptable.
scriptable Too slow.


Re: [SUGGESTION]SendClientMessageToAll Shunt - Zh3r0 - 22.10.2011

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Would use the same methods even if it was added.

Don't act like anything that can be scripted is slow as fuck.


Re: [SUGGESTION]SendClientMessageToAll Shunt - wups - 22.10.2011

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Did you do test results?
How can you say its too slow, if you have no information about scripting?


Re: [SUGGESTION]SendClientMessageToAll Shunt - Jochemd - 22.10.2011

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Slow? If you script it properly, it isn't...


Re: [SUGGESTION]SendClientMessageToAll Shunt - Biesmen - 22.10.2011

Quote:
Originally Posted by wups
Посмотреть сообщение
Did you do test results?
How can you say its too slow, if you have no information about scripting?
He doesn't know how to create it.

If you think 0.1 second is too slow, then use foreach which will make it 0.09 seconds!


Re : [SUGGESTION]SendClientMessageToAll Shunt - Alvin007 - 22.10.2011

Indeed

pawn Код:
native SendClientMessageToWorld(worldid ,0xFFFFFFAA ,text);
native SendClientMessageToInterior(interiorid ,0xFFFFFFAA ,text);
native SendClientMessageToVehicle(vehicleid ,0xFFFFFFAA ,text);
native SendClientMessageToTeam(team ,0xFFFFFFAA ,text);


/*SendClientMessageToAllWorld(GetPlayerVirtualWorld(playerid),0xFFFFFFAA,text);
SendClientMessageToAllInterior(GetPlayerInterior(playerid),0xFFFFFFAA,text);                   USELESS
SendClientMessageToAllVehicle(GetPlayerVehicleID(playerid),0xFFFFFFAA,text);
SendClientMessageToAllTeam(GetPlayerTeam(playerid),0xFFFFFFAA,text);*/