Need help in DM ~ Pllzzz !!
#1

Hi all

I have add a script of Dm on my GM (Stuntgm)
I have set if player in DM he can't teleport out
I have add if player die on DM he respawn to the same DM

I have This:

pawn Код:
public OnPlayerSpawn(playerid) {

if(dm1[playerid] == 0)

 new skinidi = GetPlayerSkin(playerid);

 if(skinidi == 2){
   SetPlayerPos(playerid,X,Y,Z),SendClientMessage(playerid,COLOR_WHITE,"/lva.");
   }
 if(skinidi == 22){
   SetPlayerPos(playerid,X,Y,Z),SendClientMessage(playerid,COLOR_WHITE,"/ls1.");
   }
 if(skinidi == 23){
   SetPlayerPos(playerid,X,Y,Z),SendClientMessage(playerid,COLOR_WHITE,"/lv1.");

}

else if(dm1[playerid] == 1)
    {
    ResetPlayerWeapons(playerid);
    new rand = random(sizeof(M4));
    SetPlayerPos(playerid,M4[rand][PlayerX],M4[rand][PlayerY],M4[rand][PlayerZ]);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,31,9999);
    SetPlayerHealth(playerid,1000);
   
    }
It compile without errors
If I chose a skin on the spawnselection directly spawn me to DM

I have add on top
pawn Код:
new dm1[MAX_PLAYERS];
& this for DM
pawn Код:
if(strcmp(cmdtext,"/dm1",true)==0)
{
dm1[playerid] = 1;
......
Need Help
Thanks a lot
Reply
#2

And also

pawn Код:
public OnPlayerConnect(playerid)
{
    dm1[playerid] = 0;
Reply
#3

Helpp ~ Plzz! !!
Reply
#4

Please, can some one help me ?
where are you scripters
Reply
#5

Cut you explain your problem a bit more?
Reply
#6

Do you reset 'dm1[playerid]' to 0 when he leaves the DM?
Reply
#7

Quote:
Originally Posted by Joe_
Do you reset 'dm1[playerid]' to 0 when he leaves the DM?
Yes man !
Reply
#8

I have solved my probleme TY
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)