23.07.2011, 18:29
incerca sa vezi
public OnPlayerDisconnect(playerid,reason) |
if(PlayerInfo[playerid][pJailed] == 1) { SetPlayerSkin(playerid, 62); SetPlayerWantedLevel(playerid, 0); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,264.6288,77.5742,1001.0391); SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail."); return 1; } if(PlayerInfo[playerid][pJailed] == 2) { SetPlayerInterior(playerid, 0); SetPlayerSkin(playerid, 62); SetPlayerPos(playerid,268.5777,1857.9351,9.8133); SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811 return 1; } |
//OnPlayerRegister
format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
//OnPlayerUpdate
format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
//OnPlayerLogin
if(!strcmp( key , "WantedLevel" , true )) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
pentru masinile pers am un cars.cfg in scriptfiles...si alea mereu se pun in fata...
daca pun Код:
for(new h = 1; h < sizeof(CarInfo); h++) { AddStaticVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo]); } //VEHICLES FACTIONS// cop2 = AddStaticVehicleEx(599,1526.4309,-1646.1412,6.0788,178.1691,0,1,never);// LSPD |
pawn Код:
|