11.08.2011, 05:57
pawn Код:
new minigun[MAX_PLAYERS];
pawn Код:
if(strcmp(cmdtext,"/minigun",true)==0)
{
if(PlayerInfo[playerid][minigun] == 1)
{
SendClientMessage(playerid, 0xAFAFAFAA, "Vocк nгo pode digitar um comando, termine essa rodada");
return 1;
}
SetPlayerPos(playerid,2844.5386,862.7607,20.3750);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 38, 99999);
minigun[playerid] = 1;
return 1;
}
pawn Код:
if(strcmp(cmdtext,"/sairminigun",true)==0)
{
SetPlayerPos(playerid,X,Y,Z);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
ResetPlayerWeapons(playerid);
minigun[playerid] = 0;
return 1;
}
Testa aк, se der certo vai ficar mais fбcil pra ti.