pickup-problem - 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: pickup-problem (
/showthread.php?tid=571963)
pickup-problem -
suni - 24.04.2015
anytime i create a pickup with cookies and i pick-it-up, i do not receive any cookies.
look
i tried hard and hard
need an expert scriper
Re: pickup-problem -
JaydenJason - 24.04.2015
Quote:
Originally Posted by suni
anytime i create a pickup with cookies and i pick-it-up, i do not receive any cookies.
look
i tried hard and hard
need an expert scriper
|
if you tried, why not give us a little code that you made of it?
Re: pickup-problem -
suni - 23.05.2015
Quote:
CMD:chp(playerid,params[])
{
new str[128], Float, Float:y, Float:z, Float:ang, amount, id;
if(PlayerAcc[playerid][Admin] >= 3)
if(sscanf(params, "i", oid, amount)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /chp id cookies");
{
format(str, sizeof(str), "You've created a Hidden-Pickup for %i cookies.", amount);
SendClientMessage(playerid, COLOR_YELLOW, str);
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid, ang);
x += (DISTANCE * floatsin(-ang, degrees));
y += (DISTANCE * floatcos(-ang, degrees));
Star = CreatePickup(oid, 1, x, y, z, -1, amount);
objectmodel[myobject]=oid;
objects++;
}
return 1;
}
|
anyone who pick it up dont receive cookies for picking it up
please help me
Re: pickup-problem -
suni - 23.05.2015
and i want to set the cookie limit to 100 but idk how to do that
Re: pickup-problem -
JaydenJason - 26.05.2015
onplayerpickup(dynamic)pickup?
Re: pickup-problem -
suni - 26.05.2015
set the cookies limit with the command /chp
Re: pickup-problem -
suni - 04.06.2015
i created a hidden pickup for 5 cookies today and when i pick it up it still say i won 0 cookies
Re: pickup-problem -
JaydenJason - 04.06.2015
could you show your OnPlayerPickupPickup, if its too big only the cookie pickup code?
Re: pickup-problem -
suni - 04.06.2015
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Star)
{
new name[ 24 ], amount, string[ 64 ]; new str[128];
GetPlayerName( playerid, name, 24 );
SendClientMessage(playerid,-1, "{FF0000}You found the {FFFF00}Hidden-Pickup {0066CC}!");
PlayerAcc[playerid][Cookies] += amount;
DestroyPickup(Star);
format( string, sizeof(string), "%s found the hidden-Pickup and won %i cookies!", name, amount);
GameTextForAll( string, 5000, 3 );
format(str, sizeof(str), "%s(id:%d) found the Hidden pickup and won %i cookies!", GetName(playerid), playerid, amount);
SendClientMessageToAll(COLOR_WHITE, str);
}
return 1;
}
Re: pickup-problem -
suni - 04.06.2015
-xd-