pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == steakhouse)
{
SendClientMessage(playerid,COLOR_YELLOW, "Welcome to the Fabulous Steakhouse! Good way to start is /menu");
SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,457.304748,-88.428497,999.554687);
}
else if (pickupid == steakhouseexit)
{
SendClientMessage(playerid,COLOR_YELLOW, "We hope you enjoyed our service! Thank you come again!");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1695.0311,2204.0920,10.8203);
}
else if (pickupid == fourdragsgasst)
{
GameTextForPlayer(playerid,"Las Venturas Gas Station. Use /gas to see available options!",1800,1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,663.836242,-575.605407,16.343263);
}
else if (pickupid == fourdragsgasstexit)
{
GameTextForPlayer(playerid,"Thank you and see you again!",1800,1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2118.3217,900.7751,10.8129);
}
else if (pickupid == lsap)
{
GameTextForPlayer(playerid,"Los Santos Airport",1800,1);
SendClientMessage(playerid,COLOR_YELLOW, "Use /flights to see available flights at this moment!");
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1827.147338,7.207417,1061.143554);
}
else if (pickupid == lvap)
{
GameTextForPlayer(playerid,"Las Venturas Airport!",1800,1);
SendClientMessage(playerid,COLOR_YELLOW, "Use /flights to see available flights at this moment!");
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1827.147338,7.207417,1061.143554);
}
else if (pickupid == sfap)
{
GameTextForPlayer(playerid,"San Fierro Airport!",1800,1);
SendClientMessage(playerid,COLOR_YELLOW, "Use /flights to see available flights at this moment!");
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1827.147338,7.207417,1061.143554);
}
else if (pickupid == hosphealth)
{
SendClientMessage(playerid,COLOR_YELLOW, "You have been healed by San Andreas Medic Department");
SetPlayerHealth(playerid, 100);
}
else if (pickupid == clothes1)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 170);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes2)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 184);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes3)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 20);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes4)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 206);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes5)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought Summer- theme clothes. At this time the Theme of Special Clothes is Summer");
SetPlayerSkin(playerid, 45);
GivePlayerMoney(playerid, -2500);
}
else if (pickupid == clothes6)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 147);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes7)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 163);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == clothes8)
{
SendClientMessage(playerid,COLOR_YELLOW, "You bought new clothes! You look fantastic!");
SetPlayerSkin(playerid, 165);
GivePlayerMoney(playerid, -250);
}
else if (pickupid == drivingschoolenter)
{
SendClientMessage(playerid,COLOR_YELLOW, "Welcome to The Driving School");
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, -2029.8493,-109.3113,1035.1718);
}
else if (pickupid == drivingschoolexit)
{
SendClientMessage(playerid,COLOR_YELLOW, "Read, Learn, Understand: /trafficrules");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2365.6655,2309.8300,8.1406);
}
else if (pickupid == taxiandbusgroup)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Taxi & Bus Group HQ. There is no leader currently");
}
else if (pickupid == neubergroup)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Neuber Group HQ. There is no leader currently");
}
else if (pickupid == firefighters)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Las Venturas Firefighters HQ. There is no leader currently");
}
else if (pickupid == sfpd)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the San Fierro Police Dept. HQ. There is no leader currently");
}
else if (pickupid == racersteam)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Racers Team HQ. There is no leader currently");
}
else if (pickupid == lvg)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Las Venturas Gangstas HQ. Leader is [AOF]SuzukiPV");
}
else if (pickupid == truckerscene)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Trucker Scene HQ. There is no leader currently");
}
else if (pickupid == lspd)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Los Santos Police Dept. HQ. Leader is [AOF]Rasse");
}
else if (pickupid == samd)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the San Andreas Medic Department HQ. There is no leader currently");
}
else if (pickupid == lvpd)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Las Venturas Police Dept. HQ. Leader is Luke_Richardson");
}
else if (pickupid == pcm)
{
SendClientMessage(playerid,COLOR_YELLOW, "Organization: Welcome to the Palomino Creek Mafia HQ. Leader is [AOF]Jakku");
}
else if (pickupid == vipskin1)
{
SendClientMessage(playerid,COLOR_YELLOW, "New VIP Member Clothes! You look very nice!");
SetPlayerSkin(playerid,51);
}
else if (pickupid == vipskin2)
{
SendClientMessage(playerid,COLOR_YELLOW, "New VIP Member Clothes! You look very nice!");
SetPlayerSkin(playerid,84);
}
else if (pickupid == vipskin3)
{
SendClientMessage(playerid,COLOR_YELLOW, "New VIP Member Clothes! You look very nice!");
SetPlayerSkin(playerid,56);
}
else if (pickupid == weapon1)
{
SendClientMessage(playerid,COLOR_YELLOW, "New VIP Weapon. Nice!");
GivePlayerWeapon(playerid,2, -1);
}
else if (pickupid == weapon2)
{
SendClientMessage(playerid,COLOR_YELLOW, "New VIP Weapon. Nice!");
GivePlayerWeapon(playerid,7, -1);
}
else if (pickupid == vipheal)
{
SendClientMessage(playerid,COLOR_YELLOW, "VIP Membership has healed you!");
SetPlayerHealth(playerid, 100);
}
else if (pickupid == viparmor)
{
SendClientMessage(playerid,COLOR_YELLOW, "VIP Membership has given you full armour!");
SetPlayerArmour(playerid, 100);
}
else if (pickupid == sciga)
{
GameTextForPlayer(playerid,"~b~Cigarettes~n~Price = $200~n~Command = /buyitem1",7000,3);
}
else if (pickupid == sapt)
{
GameTextForPlayer(playerid,"~b~Flying Ticket~n~Price = $15000~n~Command = /buyitem2",7000,3);
}
else if (pickupid == sjuice)
{
GameTextForPlayer(playerid,"~b~Orange Juice~n~Price = $150~n~Command = /buyitem3",7000,3);
}
else if (pickupid == ssnack)
{
GameTextForPlayer(playerid,"~b~Watch~n~Price = $3500~n~Command = /buyitem4",7000,3);
}
else if (pickupid == slottot)
{
GameTextForPlayer(playerid,"~b~Meatballs~n~Price = $200~n~Command = /buyitem5",7000,3);
}
else if (pickupid == fishnet1)
{
SendClientMessage(playerid,COLOR_YELLOW, "You put your fishing nets to the water....");
SendClientMessage(playerid,COLOR_YELLOW, "Now head to another Anchor Icon in the map and pick up the net");
}
else if (pickupid == fishnet2)
{
SendClientMessage(playerid,COLOR_YELLOW, "Your net catches some fish. You take fishes off from the net and put them to the bucket");
HaveFish[playerid] = 1;
}
else if (pickupid == test)
{
SendClientMessage(playerid,COLOR_YELLOW, "Hahahahahah");
}
}
There are some functions I'm gonna delete, example org leaders, if I crossed the pickup limit