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;
}