Help me System
#1

How to write out a random gun system in front of each house door and players can pick it up, who has a fs available? or someone please guide me with
Reply
#2

Get your positions from this.
Код:
CMD:showmecoordinate
{
    new Float:x,Float:y,Float:z,mypos[70];
    GetPlayerPos(playerid,x,y,z);
    format(mypos,sizeof(mypos),"My X: %f. My Y: %f. My Z: %f",x,y,z);
    SendClientMessage(playerid,-1,mypos);
    return 1;
}
You can look here for your pickups:
https://sampwiki.blast.hk/wiki/CreatePickup

You can look here for what will happen after players enter a pickup:
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#3

Quote:
Originally Posted by grymtn
Посмотреть сообщение
Get your positions from this.
Код:
CMD:showmecoordinate
{
    new Float:x,Float:y,Float:z,mypos[70];
    GetPlayerPos(playerid,x,y,z);
    format(mypos,sizeof(mypos),"My X: %f. My Y: %f. My Z: %f",x,y,z);
    SendClientMessage(playerid,-1,mypos);
    return 1;
}
You can look here for your pickups:
https://sampwiki.blast.hk/wiki/CreatePickup

You can look here for what will happen after players enter a pickup:
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
No Pickup, I want object, it can is weapon
Reply
#4

Quote:
Originally Posted by nguyenthanhdanhsamp
Посмотреть сообщение
No Pickup, I want object, it can is weapon
Weapon Object can also be used for pickups. So, players can only pick the pickups not the object. Use weapon id for pickup.
Reply
#5

You can just createdynamicobject of a gun infront of the house, and when the player come and do the command of picking up you check if he's near any gun if he is, then destroy the object and giveweapon to the player..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)