04.05.2011, 19:55
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:
exitdm cmd:
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;
}
Код:
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;
}



(