25.03.2017, 12:20
Consider using the dynamic pickups because the streamer plugins stores all information in memory. You can use Streamer_GetIntData to query for the modelid.
PHP код:
new objectName[16];
switch(Streamer_GetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID))
{
case 346: objectName = "a 9mm";
// other cases
default: objectName = "something";
}
format(str,sizeof(str),"%s(%i) has picked up %s from their surroundings",PlayerName(playerid),playerid, objectName);