17.10.2012, 22:27
no when i am in dm area and teleport to another dm wont block just teleport and dont say anything
Код:
if (strcmp(cmdtext,"/area51dm", true, 9) ==0) { if(IsAtDMArea[playerid] == 1) return SendClientMessage(playerid, red, "You already are at dm area"); if(IsAtDM[playerid] == 1) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 0); SetPlayerPos(playerid,203.5948, 1929.7161, 22.8286); new str[128],name[24]; GetPlayerName(playerid,name,24); format(str,sizeof(str),"~r~%s ~w~has teleported to /area51dm",name); TextDrawSetString(teleporttext,str); GivePlayerWeapon(playerid,24,100);//------Deagle GivePlayerWeapon(playerid,27,100);//------Combat Shotgun GivePlayerWeapon(playerid,34,100);//------Sniper Rifle TextDrawShowForPlayer(playerid, teleporttext); SendClientMessage(playerid,yellow,"Welcome To The Area51 Death match! to Exit use /exitdm!!!"); dm1[playerid] = 1; IsAtDMArea[playerid] = 1; IsAtDM[playerid] = 1; return 1; }