[pawn]public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == PICKUPID)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name,\"NÉV\",true))
{
// amit csináljon, ha az a neve
} else { SendClientMessage(playerid, 0x0ffff, \"Nem vagy jogosult rá.\"); return 1; }
}
return 1;
}
[/pawn]
PICKUPID = A pickup ID-je
NÉV: A név, amivel fel lehet venni.