OnPlayerText - 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: OnPlayerText (
/showthread.php?tid=315464)
OnPlayerText -
Shabi RoxX - 03.02.2012
Hy, Guys I am making Vehicle Selection menu , and its work like typing 'next' in chat for next car but that text also shows to chat I want to stop this but HOW ?
Here my codes....
Код:
public OnPlayerText(playerid, text[])
{
if(P_CAR_Spawn == 0)
{
P_CAR_Model[playerid] = GetVehicleModel(P_CAR[playerid]);
if (strcmp("next", text, true) == 0)
{
DestroyVehicle(P_CAR[playerid]);
P_CAR[playerid] = CreateVehicle(539,1069.8643,-298.1687,73.8801,244.1427,253,86,0);
}
}
return 1;
}
Thanks in ADVANCE.
Re: OnPlayerText -
[XST]O_x - 03.02.2012
pawn Код:
if(strcmp("next", text, true) == 0)
{
DestroyVehicle(P_CAR[playerid]);
P_CAR[playerid] = CreateVehicle(539,1069.8643,-298.1687,73.8801,244.1427,253,86,0);
return 0; //This
}
Re: OnPlayerText -
Shabi RoxX - 03.02.2012
Oh Thanks...