#1

when enter deathmatch the Interior is blank and then the player money
Ascending slightly when enter the room.

PHP код:
public OnPlayerSpawn(PID
PHP код:
if(InDM[PID] == true)
              {
                  switch (
DM[PID])
                {
                    case 
0shamal
                    
{
                            
GivePlayerWeapon(PID241000);
                            
SetPlayerHealth(PID99);
                            
SetPlayerArmour(PID99);
                            new 
spawn random(sizeof(DMZeroSpawns));
                            
SetPlayerPos(PIDDMZeroSpawns[spawn][0], DMZeroSpawns[spawn][1], DMZeroSpawns[spawn][2]);
                            
SetPlayerFacingAngle(PIDDMZeroSpawns[spawn][3]); //>> SetPlayerInterior
                            
SetPlayerVirtualWorld(PID1);
                            
SetPlayerInterior(playerid17);
                            
SetPlayerHealth(PID99);
                    }
                }
              } 
PHP код:
public OnPlayerDeath(PIDkilleridreason
PHP код:
if(InDM[PID] == true)
            {
              if(
anakko[PID] == 1)
              {
                    
anakko[PID] = 0;
                     if(
makko[PID] != INVALID_PLAYER_ID)
                    
TogglePlayerSpectating(PID1);
                    
PlayerSpectatePlayer(PIDkillerid);
                    
SendClientMessage(PIDSKYBLUE    "You have been killed, you are now spectating your killer.");
                    
SetTimerEx("EndDeathCam"10000false"i"playerid);
              }
              else
              {
                    
TogglePlayerSpectating(PID0);
                    
killstreak(PIDkillerid);
                    
DestroyDynamic3DTextLabel(wanted[killerid]);
                    return 
1;
              }
            } 
the dialog
PHP код:
Dialog:RandomDM(PIDresponselistiteminputtext[])
{
    new 
string[128], playerName[MAX_PLAYER_NAME];
    
GetPlayerName(PIDplayerNamesizeof(playerName));
    if (
response)
    {
        switch(
listitem// Check which option was chosen when they responded. We only have one for now. The next would be case 1, then case 2 and so on.
        
{
            case 
0:
            {
                    
InDM[PID] = true;
                    
DM[PID] = 0;
                    
SpawnPlayer(PID);
                    
PlayerTextDrawHide(PID,Textdraw0);
                    
PlayerTextDrawHide(PID,Textdraw1);
                    
PlayerTextDrawHide(PID,Textdraw2);
                    
PlayerTextDrawHide(PID,Textdraw3);
                    
SetPlayerInterior(playerid17);
                    
SetPlayerVirtualWorld(PID1);
            }
        }
        
format(stringsizeof(string), "{77B3D9}[DM Zones] {ffffff}%s(%i) has just entered {77B3D9}DM zone %i {ffffff}(/dm)"playerNamePIDDM[PID]);
        
scms(-1string);
        return 
1;  // ?? One you missed
    
}
    return 
0;

the command
PHP код:
CMD:dmlist(PIDparams[])
{
    
Dialog_Show(PIDRandomDMDIALOG_STYLE_LIST"DM Zones""DM 0 - Shamal""Enter""Cancel");
    return 
1;

another question,how make limit of room example if the maximum of room is 5 and other player cant go in
Reply


Messages In This Thread
bug - by asri - 06.08.2017, 07:59
Re: bug - by asri - 06.08.2017, 10:38
Re: bug - by Misiur - 06.08.2017, 10:42
Re: bug - by asri - 06.08.2017, 10:51
Re: bug - by asri - 07.08.2017, 03:03
Re: bug - by asri - 07.08.2017, 13:57
Re: bug - by asri - 08.08.2017, 00:18
Re: bug - by Dayrion - 08.08.2017, 00:37
Re: bug - by asri - 08.08.2017, 01:38
Re: bug - by Dayrion - 08.08.2017, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)