19.06.2012, 13:12
hey ... can i know .. how can i make like this ?? if i get the pickup ... gametext will out ...
>>>>>
>>>>>
new police;//Pickup Id
public OnGameModeInit()
{
police = CreatePickup(id,1,x,y,z,-1);//Replace id, x,y,z with id of pickup and it's location
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == police)
{
//Show Gametext here
}
return 1;
}
new policepickup[10];
public OnGameModeInit()
{
policepickup[1] = CreatePickup(id,1,x,y,z,-1);//Replace id, x,y,z with id of pickup and it's location
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(policepickup[])
{
case 0:
{
//
}
case 1:
{
//
}
case 2:
{
//
}
}
return 1;
}