01.05.2009, 10:29
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enter", cmdtext, true, 10) == 0) // Hospital Enter { if(PlayerToPoint(playerid,1172.6697,-1321.4301,15.3988,3)) { SetPlayerPos(playerid,288.745971,169.350997,1007.171875); SetPlayerInterior(playerid,3); } return 1; } if (strcmp("/exit", cmdtext, true, 10) == 0) // Hospital Exit { if(PlayerToPoint(playerid,288.745971,169.350997,1007.171875,3)) { SetPlayerPos(playerid,1172.6697,-1321.4301,15.3988); SetPlayerInterior(playerid,0); } return 1; } if (strcmp("/enter", cmdtext, true, 10) == 0) // Bloods Enter { if(PlayerToPoint(playerid,2148.9336,-1484.9655,26.6240,3)) { SetPlayerPos(playerid,2454.717041,-1700.871582,1013.515197); SetPlayerInterior(playerid,2); } return 1; } if (strcmp("/exit", cmdtext, true, 10) == 0) // Bloods Exit { if(PlayerToPoint(playerid,2454.717041,-1700.871582,1013.515197,3)) { SetPlayerPos(playerid,2148.9336,-1484.9655,26.6240); SetPlayerInterior(playerid,0); } return 1; }
But if i compiled and went tryed it, it only allowed me to go in hospital, bloods house didnt work anymore, what im doing wrong?
Without the hospital /enter and /exit, bloods house works