Need help in DM ~ Pllzzz !! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help in DM ~ Pllzzz !! (
/showthread.php?tid=153200)
Need help in DM ~ Pllzzz !! -
Yaszine - 07.06.2010
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
& this for DM
pawn Код:
if(strcmp(cmdtext,"/dm1",true)==0)
{
dm1[playerid] = 1;
......
Need Help
Thanks a lot
Re: Need help in DM ~ Pllzzz !! -
Yaszine - 07.06.2010
And also
pawn Код:
public OnPlayerConnect(playerid)
{
dm1[playerid] = 0;
Re: Need help in DM ~ Pllzzz !! -
Yaszine - 07.06.2010
Helpp ~ Plzz! !!
Re: Need help in DM ~ Pllzzz !! -
Yaszine - 08.06.2010
Please, can some one help me ?
where are you scripters
Re: Need help in DM ~ Pllzzz !! -
Naxix - 08.06.2010
Cut you explain your problem a bit more?
Re: Need help in DM ~ Pllzzz !! -
Joe_ - 08.06.2010
Do you reset 'dm1[playerid]' to 0 when he leaves the DM?
Re: Need help in DM ~ Pllzzz !! -
Yaszine - 08.06.2010
Quote:
Originally Posted by Joe_
Do you reset 'dm1[playerid]' to 0 when he leaves the DM?
|
Yes man !
Re: Need help in DM ~ Pllzzz !! -
Yaszine - 08.06.2010
I have solved my probleme TY