SA-MP Forums Archive
SenClientMessage! - 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: SenClientMessage! (/showthread.php?tid=491208)



SenClientMessage! - Snoopythekill - 29.01.2014

hello anyone can help me? I repeat the message twice

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Joined[playerid] == true)
{
PutPlayerInVehicle(playerid, CreatedRaceVeh[playerid], 0);
SendClientMessage(playerid,VERDELIMA, "No puedes Bajar de tu vehiculo, para abandonar la carrera Usa /Salir");
}



Re : SenClientMessage! - MCZOFT - 29.01.2014

what you mean dude .... explain more , is ur code is printing his self twice automaticly ?


Respuesta: SenClientMessage! - Snoopythekill - 29.01.2014

the message goes twice


Re : SenClientMessage! - MCZOFT - 29.01.2014

True to add , return 1; and let's see what's gonna happen


Respuesta: Re : SenClientMessage! - Snoopythekill - 29.01.2014

Quote:
Originally Posted by MCZOFT
Посмотреть сообщение
True to add , return 1; and let's see what's gonna happen
was the first thing I did ._. but was not solved, I think friend because the function applies very fast but I I did this:
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Joined[playerid] == true)
{
PutPlayerInVehicle(playerid, CreatedRaceVeh[playerid], 0);
if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,0x00FF00AA,"No puedes Bajar de tu vehiculo, para abandonar la carrera Usa /Salir");
}
what you do now first check that the target vehicle inside the vehicle if you can send the message
Solved with help from you and wiki samp

thanks


Re : SenClientMessage! - MCZOFT - 29.01.2014

Good luck then brother