[HELP] Random Spawn
#1

Hello everyone,

I have one problem, I made a dm zone and in that zone I can't use any other commands but now I don't now how to make if somebody kill somebody in that zone than he spawn on some other spawn in that zone, and when he type /exitdm than he spawn in server spawn, I think you under stand me

Minigun cmd:
Код:
CMD:minigun(playerid,params[])
{
    if(InAfkZone[playerid]==1) return SendClientMessage(playerid, COLOR_ORANGE, "Nemozete koristiti komande u AFK zoni, upisite /back");
	InDmZone[playerid]=1;
	new name[24];
	new string[48];
	SetPlayerPos(playerid, 2555.6736,2844.0222,10.8203);
	GivePlayerWeapon(playerid, 38, 9999);
	GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), ""COL_RED"%s "COL_LIGHTBLUE">>/minigun<<", name);
	SendClientMessageToAll(COLOR_GREEN, string);
	return 1;
}
exitdm cmd:
Код:
CMD:exitdm(playerid, params[])
{
    if(InAfkZone[playerid]==1) return SendClientMessage(playerid, COLOR_ORANGE, "Nemozete koristiti komande u AFK zoni, upisite /back");
	{
	    InDmZone[playerid] = 0;
	    SpawnPlayer(playerid);
		SetCameraBehindPlayer(playerid);
	    SendClientMessage(playerid, COLOR_KRED, "Napustili ste DM Zonu!");
	}
	return 1;
}
Reply


Messages In This Thread
[HELP] Random Spawn - by System64 - 04.05.2011, 19:55
Re: [HELP] Random Spawn - by BigETI - 04.05.2011, 20:16
Re: [HELP] Random Spawn - by System64 - 04.05.2011, 20:46
Re: [HELP] Random Spawn - by BigETI - 04.05.2011, 21:12
Re: [HELP] Random Spawn - by TheGarfield - 04.05.2011, 21:51
Re: [HELP] Random Spawn - by park4bmx - 04.05.2011, 22:01
Re: [HELP] Random Spawn - by BigETI - 04.05.2011, 23:00
Re: [HELP] Random Spawn - by System64 - 05.05.2011, 06:48
Re: [HELP] Random Spawn - by BigETI - 05.05.2011, 11:32
Re: [HELP] Random Spawn - by System64 - 05.05.2011, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)