pickup-problem
#1

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
Reply
#2

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?
Reply
#3

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
Reply
#4

and i want to set the cookie limit to 100 but idk how to do that
Reply
#5

onplayerpickup(dynamic)pickup?
Reply
#6

set the cookies limit with the command /chp
Reply
#7

i created a hidden pickup for 5 cookies today and when i pick it up it still say i won 0 cookies
Reply
#8

could you show your OnPlayerPickupPickup, if its too big only the cookie pickup code?
Reply
#9

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;
}
Reply
#10

-xd-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)