25.05.2011, 18:11
Код:
new indm; indm = 0; if(strcmp(cmdtext, "/minigun", true)==0) { if(indm == 0) { indm = 1; give guns 'n shit SendClientMessage(playerid, 0xFF0000AA, "you entered to minigun"); } else { SendClientMessage(playerid, 0xFF0000AA, "you already are in minigun"); } return 1; } if(strcmp(cmdtext, "/exit", true)==0) { if(indm == 1) { indm = 0; ResetPlayerWeapons(playerid); SendClientMessage(playerid, 0xFF0000AA, "you left from minigun"); SpawnPlayer(playerid); } else { SendClientMessage(playerid, 0xFF0000AA, "you are not in minigun"); } return 1; } and all teleports if(strcmp(cmdtext, "/lva", true)==0) { if(indm == 0) { setplayerpos } else { SendClientMessage(playerid, 0xFF0000AA, "you cant teleport because you are in dm"); } return 1; }