22.07.2014, 11:33
nгo vou te mandar as variaveis pois vocк jб sabe
ongamemodeinit
onplayerpickup
no caso para apertar f
onplayerkeystatechange
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);
Код:
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"); }
Код:
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; }
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys==KEY_SECONDARY_ATTACK)) { OnPlayerCommandText(playerid,"/equipandoplc"); } return 1; }