07.01.2012, 07:41
Im triyng to make it.Here is the command:
Код:
if (strcmp("/dm1", cmdtext, true, 10) == 0) { if(isindm1[playerid]==1) return SendClientMessage(playerid, COLOR_YELLOW, "You need to exit the current deathmatch first."); isindm1[playerid]=1; SetPlayerPos(playerid, 1776.9133, -1801.5455, 52.4688); SetPlayerFacingAngle(playerid, 0); new string[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof(string)," %s Joined Dm1",pName); SendClientMessageToAll(COLOR_YELLOW,string); } if (strcmp("/cancel", cmdtext, true, 10) == 0) { if(isindm1[playerid]==1)isindm1[playerid]=0; else return SendClientMessage(playerid, COLOR_YELLOW, "Your Not In a Dm!"); SetPlayerPos(playerid, -1496.3367, 904.7078, 7.1875); new string[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof(string)," %s exit DM1",pName); SendClientMessageToAll(COLOR_YELLOW,string); } return 1; }