19.06.2011, 15:18
tenho outra duvida eu queria colocar de 1 modo de entrar em varios locais com apenas 1 comando /entrar... tentei fazer separado e nгo funcionou dai tentei colocar junto e nads tbm
Quote:
if (strcmp(cmdtext, "/entrar", true) ==0)//ENTRAR NA PREFEITURA { if(IsPlayerInRangeOfPoint(playerid, 7.0, 1378.7239990234,-1753.1411132813,14.140625)) { SetPlayerInterior(playerid,5); SetPlayerPos(playerid, 774.19915771484,-50.189094543457,1000.5859375); SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Box!"); } if(IsPlayerInRangeOfPoint(playerid, 7.0, 1791.7954101563,1163.5073242188,23.828125)) { SetPlayerInterior(playerid,5); SetPlayerPos(playerid, 773.92553710938,-78.552040100098,1000.6627197266); SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Kung-Fu!"); } return 1; } if (strcmp(cmdtext, "/sair", true) ==0)//ENTRAR NA PREFEITURA { if(IsPlayerInRangeOfPoint(playerid, 7.0,774.19915771484,-50.189094543457,1000.5859375)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1378.7239990234,-1753.1411132813,14.140625); SendClientMessage(playerid,0x0000FF83,"Vocк saiu da Academia de Box!"); } if(IsPlayerInRangeOfPoint(playerid, 7.0,773.92553710938,-78.552040100098,1000.6627197266)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1791.7954101563,1163.5073242188,23.828125); SendClientMessage(playerid,0x0000FF83,"Vocк saiu da Academia de Kung-FU!"); } return 1; } |