[Ajuda] Pickup
#3

nгo vou te mandar as variaveis pois vocк jб sabe
ongamemodeinit
Код:
 NovoPickup = CreatePickup(1272, 1, 1308.145141, -867.986633, 39.578125, 0);
    Create3DTextLabel("Equipar aperte f", 0xFFFF00AA, 1308.145141, -867.986633, 39.578125, 10, 0, 0);
onplayerpickup
Код:
  if(pickupid == NovoPickup) {
 GameTextForPlayer(playerid,"~w~Voce se equipou!", 6000,4);
 GivePlayerWeapon(playerid,3,999);
 GivePlayerWeapon(playerid,41,999);
 SendClientMessage(playerid, COR_ERRO,"Vocк se equipou, Parabйns");
}
no caso para apertar f

Код:
 if(strcmp(cmdtext, "/equipandoplc", true) == 0)
	{
     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1309.1957,-868.5053,39.5781))
     {
      GameTextForPlayer(playerid,"~w~Voce se equipou!", 6000,4);
      GivePlayerWeapon(playerid,3,999);
      GivePlayerWeapon(playerid,41,999);
      SendClientMessage(playerid, COR_ERRO,"Vocк se equipou, Parabйns");
     }
	return true;
	}
onplayerkeystatechange
Код:
 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys==KEY_SECONDARY_ATTACK))
{
   OnPlayerCommandText(playerid,"/equipandoplc");
}
	return 1;
}
Reply


Messages In This Thread
Pickup - by FabioGTP - 22.07.2014, 11:01
Re: Pickup - by RelaxX199 - 22.07.2014, 11:04
Re: Pickup - by FabioGTP - 22.07.2014, 11:33
Re: Pickup - by FabioGTP - 23.07.2014, 13:33
Re: Pickup - by joker147 - 23.07.2014, 21:05
Re: Pickup - by FabioGTP - 24.07.2014, 01:24

Forum Jump:


Users browsing this thread: 3 Guest(s)