SA-MP Forums Archive
Help me System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me System (/showthread.php?tid=655640)



Help me System - nguyenthanhdanhsamp - 25.06.2018

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


Re: Help me System - grymtn - 26.06.2018

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


Re: Help me System - nguyenthanhdanhsamp - 26.06.2018

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


Re: Help me System - UFF - 26.06.2018

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.


Re: Help me System - JasonRiggs - 26.06.2018

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..