Disable the shop in dm and 2nd skin
#4

I fixed your /boxing command.
I removed SetPlayerPos from my command, but remember to add setplayerpos again.

Before Main:
pawn Код:
new DmSkins[] = {80, 81};
OnPlayerCommandText:
pawn Код:
if(strcmp(cmdtext, "/boxing", true) == 0)
{
   if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","OK","KILL ME");
   DMZone[playerid] = 1;

   new RandomDMSkin = random(sizeof(DmSkins));

   //SetPlayerPos(playerid, RandomPlayerSpawnsBoxing[rand][0], RandomPlayerSpawnsBoxing[rand][1], RandomPlayerSpawnsBoxing[rand][2]);
   SetPlayerInterior(playerid, 0);
   SetPlayerSkin(playerid, DmSkins[RandomDMSkin]);
   ResetPlayerWeapons(playerid);
   GameTextForPlayer(playerid, "~y~Boxing", 4000, 6);
   return 1;
}
Reply


Messages In This Thread
Disable the shop in dm and 2nd skin - by Juanxz - 24.01.2010, 20:32
Re: Disable the shop in dm and 2nd skin - by lameguy - 25.01.2010, 12:52
Re: Disable the shop in dm and 2nd skin - by Juanxz - 26.01.2010, 07:29
Re: Disable the shop in dm and 2nd skin - by lameguy - 29.01.2010, 13:20
Re: Disable the shop in dm and 2nd skin - by Juanxz - 30.01.2010, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)