24.09.2009, 16:21
Try this:
Example (my code):
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;
}
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;
}