OnPlayerText
#1

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.
Reply
#2

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
}
Reply
#3

Oh Thanks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)