13.06.2012, 10:05
I spawn middle of nowhere
here is my onplayerspawn
here is my onplayerspawn
PHP код:
}
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pTut] == 0)
{
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pBank] = 500;
PlayerInfo[playerid][pFight] = 0;
PlayerInfo[playerid][pTalk] = 0;
PlayerInfo[playerid][pBan] = 0;
RegistrationStep[playerid] = 1;
Wounded[playerid] = 0;
IsUsingAnim[playerid] = 0;
SetPlayerCash(playerid,PlayerInfo[playerid][pCash]);
TogglePlayerControllable(playerid, 0);
TutorialStage[playerid] = 1;
}
if(!gPlayerAnimLibsPreloaded[playerid])
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"RIOT");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"OTB");
PreloadAnimLib(playerid,"SWEET");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"HEIST9");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"GHANDS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"STRIP");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"BASEBALL");
PreloadAnimLib(playerid,"GRAVEYARD");
PreloadAnimLib(playerid,"FAT");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"TEC");
PreloadAnimLib(playerid,"BOX");
PreloadAnimLib(playerid,"SUNBATHE");
PreloadAnimLib(playerid,"CAR");
PreloadAnimLib(playerid,"BD_Fire");
PreloadAnimLib(playerid,"BIKES");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
if(gPlayerLogged[playerid])
{
SetPlayerSpawn(playerid);
SetPlayerHealth(playerid,100);
}
return 1;