09.07.2010, 00:46
Hello everybody,i tryed to add Sandra's Truck missions Fs to my GM,all is positive but the text is not sending.
Like this :
If i'm enter Tanker(Model:514) it isn't send anything like "type /startmission" etc.
But i execute it with filterscript,it works.Why?How can i solve it ?Please help me.
Like this :
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicle = GetPlayerVehicleID(playerid);
if(newstate == 2)
{
if(TruckmissionPlaying[playerid] == 0)
{
new PTruck;
for(new ID=1; ID<MAX_MISSIONS; ID++)
{
if(IsPlayerInVehicle(playerid, Truck[ID]))
{
PTruck = ID;
break;
}
}
if(PTruck > 0 && GetVehicleModel(vehicle) == 514)
{
TogglePlayerControllable(playerid, 0);
new string[128];
format(string, sizeof(string), "You can do #%d mission with this truck.", PTruck);
SendClientMessage(playerid, COLOR_ORANGE, string);
SendClientMessage(playerid, COLOR_ORANGE, "To start mission,type /startmission for exit,please type /exit.");
}
}
}
return 1;
}
But i execute it with filterscript,it works.Why?How can i solve it ?Please help me.