25.02.2012, 12:17
pawn Код:
//topo do GM:
new IsInMinugun[MAX_PLAYERS];
//em OnPlayerConnect:
IsInMinigun[playerid] = 0;
//agr vai em onplayerdeath e no local onde tem: SetPlayerScre(playerid, GetPlayerScore(playerid) +1); (ou equivalente), coloca a condiзгo:
if(IsInMinigun[playerid] == 1) return 0;
//e no comando:
if(strcmp("/minigun", cmdtext, true, 10) == 0)
{
new pname[MAX_PLAYER_NAME];
new string [256];
if(IsInMinigun[playerid] == 1) return SendClientMessage(playerid, 0xAAAAAAAA, "VocК jб estб no espaзo Minigun");
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{00FF7F}[TELEPORTE]: {FFFFFF}%s Foi para o Combate Minigun {00FF7F}(/minigun)", pname);
SendClientMessageToAll(0x00F400AA, string);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 4);
SetPlayerPos(playerid,1780.4139,-1119.7454,85.4453);
ResetPlayerWeapons(playerid);
IsInMinigun[playerid] = 1;
GivePlayerWeapon(playerid, 38, 9999);
return 1;
}