21.09.2012, 04:52
Isto deve resolver o seu problema .
Coloque :
Espero ter ajudado .
Coloque :
pawn Код:
//No Topo do GM:
new PickupEquipar[2];
//No OnGameModeInit:
PickupEquipar[0] = CreatePickup(1254, 1, 199.8108, -235.5931, 1.8110);
PickupEquipar[1] = CreatePickup(1254, 1, 1247.3447, 327.2736, 19.7578);
//E, no OnPlayerPickUpPickup:
if(pickupid == PickupEquipar[0])
{
GameTextForPlayer(playerid, "~w~Soldado Equipado", 6000, 4);
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, FACA, 1);
GivePlayerWeapon(playerid, EAGLE, 300);
GivePlayerWeapon(playerid, SHOTGUN, 300);
GivePlayerWeapon(playerid, MP5, 300);
GivePlayerWeapon(playerid, M4, 300);
GivePlayerWeapon(playerid, SNIPER, 300);
}
else if(pickupid == PickupEquipar[1])
{
GameTextForPlayer(playerid, "~w~Soldado Equipado", 6000, 4);
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, FACA, 1);
GivePlayerWeapon(playerid, EAGLE, 300);
GivePlayerWeapon(playerid, SHOTGUN, 300);
GivePlayerWeapon(playerid, MP5, 300);
GivePlayerWeapon(playerid, M4, 300);
GivePlayerWeapon(playerid, SNIPER, 300);
}
Espero ter ajudado .