SetPlayerWeather only for skin choose? help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerWeather only for skin choose? help please (
/showthread.php?tid=98943)
SetPlayerWeather only for skin choose? help please -
TopeK - 24.09.2009
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
Re: SetPlayerWeather only for skin choose? help please -
Doppeyy - 24.09.2009
Something with Onplayerrequestclass?
pawn Код:
public OnPlayerRequestClass();
{
SetPlayerWeather(playerid,weatherid);
}
Re: SetPlayerWeather only for skin choose? help please -
TopeK - 24.09.2009
yes but then spawn is that weather what in skin choose...
Re: SetPlayerWeather only for skin choose? help please -
AG Adam - 24.09.2009
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;
}
Re: SetPlayerWeather only for skin choose? help please -
TopeK - 24.09.2009
yes it works, but when someone that join server try to choose skin it change for stormy weather for all players.
Re: SetPlayerWeather only for skin choose? help please -
AG Adam - 24.09.2009
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 Set
PlayerWeather, not setting to everyone.
Re: SetPlayerWeather only for skin choose? help please -
TopeK - 24.09.2009
ok, work good thx.