DM Area Again! i posted this thread 7 times!!! if anyone know pls help me!
#1

Код:
if (strcmp(cmdtext,"/sfdm", true , 5) ==0)
	{
	SetPlayerPos(playerid,-1390.3849, 1494.4746, 1.6152);
	new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        format(string,sizeof string,"%s has joined /sfdm.",pName);
        SendClientMessageToAll(orange,string);
	GivePlayerWeapon(playerid,24,100);//------Deagle
	GivePlayerWeapon(playerid,27,100);//------Combat Shotgun
	GivePlayerWeapon(playerid,34,100);//------Sniper Rifle
	SendClientMessage(playerid,orange,"Welcome To The Sf Death match! to Exit use /exitdm!!!");
	return 1;
	}
what i need to add here, on /exitdm and onplayerspawn?
Код:
if (strcmp(cmdtext,"/exitdm", true , 7) == 0)
	{
	SetPlayerPos(playerid,1958.3319, -2355.5676, 13.0000);
	ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 0, 1);
	SendClientMessage(playerid,yellow,"You have exited the Dm!");
	return 1;
	}
so when player die in dm area autoteleport back to that area there are 7 dm areas this is one of them.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)