31
mIRC/pawn Scripting / Re: Give me please.
« on: February 06, 2012, 04:00:11 pm »
Those commands won't work unless you work with GUPS, sorry to say. It'll take a bit more brain work than just copy pasting it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
public OnPickedUp(pickupid, playerid)
{
if( pickupid == 1 ) // The Pickup number here
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 407" );
return 1;
}
else if( pickupid == 2) // The second pickup number here
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 406" );
return 1; // And you are lose in this
}
}
Look ...
AddStaticPickup(pickupid,type,X,Y,Z);
pickupid = just a number... you can start with 1
=> AddStaticPickup(1,type,X,Y,Z);
type = pickup model . You can find here a list with some models .
=> AddStaticPickup(1,382,X,Y,Z);
X,Y,Z = Coordonates
public OnPickedUp(pickupid, playerid)
{
if( pickupid == 407)
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 407" );
return 1;
}
else if( pickupid == 406) // This is the 256 Line
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 406" );
return 1; // And you are lose in this
}
}