SetPlayerWeather only for skin choose? help please
#1

Hi is it possible to SetPlayerWeather only for players they are choosing skin?#
i mean for example this : http://files.uploadffs.com/c/55abc168/samp082.png
but only when people are choosing skin is this weather and after spawn chang to normall

Reply
#2

Something with Onplayerrequestclass?

pawn Код:
public OnPlayerRequestClass();
{
SetPlayerWeather(playerid,weatherid);
}
Reply
#3

yes but then spawn is that weather what in skin choose...
Reply
#4

Try this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
 // Here is your stuff
SetPlayerWeather(playerid,8); // Stormy weather
  return 1;
}

public OnPlayerSpawn(playerid)
SetPlayerWeather(playerid,0); // Normal, sunny weather
return 1;
}
Example (my code):

pawn Код:
public OnPlayerSpawn(playerid)
{
    GivePlayerWeapon(playerid, 15, 1);
    GivePlayerWeapon(playerid, 42, 640);
    SetPlayerInterior(playerid, 0);
    ResetPlayerMoney(playerid);
  GivePlayerMoney(playerid, 4000);
  SetPlayerVirtualWorld(playerid,0);
  ClearAnimations(playerid);
  TogglePlayerClock(playerid,1);
  SetPlayerSpecialAction(playerid,0);
  SetPlayerWeather(playerid,0);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerCameraPos(playerid, -783.772827, 503.721008, 1374.391357);
  SetPlayerCameraLookAt(playerid, -792.011291, 501.136169, 1371.749023);
  SetPlayerPos(playerid, -792.011291, 501.136169, 1371.749023);
  SetPlayerInterior(playerid, 1);
  SetPlayerFacingAngle(playerid, 264.610198);
  ApplyAnimation(playerid,"PED","SEAT_IDLE",4.0,1,0,0,0,-1);
  SetPlayerWeather(playerid,16);
  return 1;
}
Reply
#5

yes it works, but when someone that join server try to choose skin it change for stormy weather for all players.
Reply
#6

Quote:
Originally Posted by Topq[Top-Server.pl
]
yes it works, but when someone that join server try to choose skin it change for stormy weather for all players.
why? this is only SetPlayerWeather, not setting to everyone.
Reply
#7

ok, work good thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)