12.08.2011, 19:08
pawn Код:
new PickupTime[MAX_PLAYERS][3];
pawn Код:
CMD:pickuptime(playerid, params[])
{
new msg[128];
format(msg, sizeof(msg), "Pickup was picked up at %02d:%02d:%02d", PickupTime[playerid][0], PickupTime[playerid][1], PickupTime[playerid][2]);
SendClientMessage(playerid, -1, msg);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
gettime(PickupTime[playerid][0], PickupTime[playerid][1], PickupTime[playerid][2]);
return 1;
}