Whats wrong with this?
#5

here-
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{new stringg[56];
	if(GetPlayerVehicleID(playerid) >= VCount) return 1;
	new car = GetPlayerVehicleID(playerid); 

	if(newstate==PLAYER_STATE_DRIVER)
	{
		new PlayerName[100]; GetPlayerName(playerid,PlayerName,30);
		if(VehicleInfo[car][CarOwned] == 1)
		{
      if(strcmp(PlayerName,VehicleInfo[car][CarOwner],true) == 0) {
   format(stringg, sizeof(stringg),".:!blabla:.");
	    SendClientMessage(playerid,0xFFFFFFFF,"");
      } else {
     format(stringg, sizeof(stringg),".:!%s blabla:.");
	    SendClientMessage(playerid,0xFFFFFFFF,VehicleInfo[car][CarOwner]);    }
		}
		else if(VehicleInfo[car][Buyable] == 0)
		{
    format(stringg, sizeof(stringg),".:blabla:.",VehicleInfo[car][CarOwner]);
	    SendClientMessage(playerid,0xFFFFFFFF,VehicleInfo[car][CarOwner]);
		}
		else
		{
    format(stringg, sizeof(stringg),".:!%d blabla:.",VehicleInfo[car][CarOwner]);
	    SendClientMessage(playerid,0xFFFFFFFF,VehicleInfo[car][CarOwner]);
		}
 	}

	if(newstate==PLAYER_STATE_PASSENGER)
	{
		if(VehicleInfo[car][CarOwned] == 1)
		{
    format(stringg, sizeof(stringg),".:!%s blabla:.",VehicleInfo[car][CarOwner]);
	    SendClientMessage(playerid,0xFFFFFFFF,VehicleInfo[car][CarOwner]);
		}
	}

	return 1;
}
Reply


Messages In This Thread
Whats wrong with this? - by DevilRP - 19.05.2010, 13:24
Re: Whats wrong with this? - by ViruZZzZ_ChiLLL - 19.05.2010, 13:26
Re: Whats wrong with this? - by DevilRP - 19.05.2010, 13:46
Re: Whats wrong with this? - by ViruZZzZ_ChiLLL - 19.05.2010, 13:46
Re: Whats wrong with this? - by DevilRP - 19.05.2010, 13:52
Re: Whats wrong with this? - by RoamPT - 19.05.2010, 14:00
Re: Whats wrong with this? - by DevilRP - 19.05.2010, 14:21
Re: Whats wrong with this? - by RoamPT - 19.05.2010, 14:39
Re: Whats wrong with this? - by DevilRP - 19.05.2010, 14:43
Re: Whats wrong with this? - by RoamPT - 19.05.2010, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)