29.01.2010, 13:20
I fixed your /boxing command.
I removed SetPlayerPos from my command, but remember to add setplayerpos again.
Before Main:
OnPlayerCommandText:
I removed SetPlayerPos from my command, but remember to add setplayerpos again.
Before Main:
pawn Код:
new DmSkins[] = {80, 81};
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;
}