Help with onplayerstatechange
#1

Hello guys i have this code here
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return SendClientMessage(playerid,COLOR_RED,"Debug : Works.");
        return 1;
        }
but it doesn't send any message why? :/
Reply
#2

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
	    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520)
	    {
	        SendClientMessage(playerid,COLOR_RED,"Debug : Works.");
	        return 1;
	    }
	}
	return 1;
}
Reply
#3

thanks mate works now
RP++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)