22.05.2011, 18:36
MSM assim nao funcionou
Код:
if(strcmp(cmd, "/sair", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if(GetPlayerVirtualWorld(playerid) != 0 && TaNaHQ[playerid] == 255 && TaNaCasa[playerid] != 255) { //new world = GetPlayerVirtualWorld(playerid)-1; if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz])) { new OldWorld = GetPlayerVirtualWorld(playerid); new NewWorld; SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid,0); if(HouseInfo[i][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } NewWorld = GetPlayerVirtualWorld(playerid); format(string, sizeof(string), "DEBUG: seu world foi mudado de: %d para: %d.", OldWorld,NewWorld); SendClientMessage(playerid, COLOR_GREY, string); } } }