07.06.2010, 20:47
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:
It compile without errors
If I chose a skin on the spawnselection directly spawn me to DM
I have add on top
& this for DM
Need Help
Thanks a lot
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);
}
If I chose a skin on the spawnselection directly spawn me to DM
I have add on top
pawn Код:
new dm1[MAX_PLAYERS];
pawn Код:
if(strcmp(cmdtext,"/dm1",true)==0)
{
dm1[playerid] = 1;
......
Thanks a lot
