Guest Maverick Posted July 21, 2010 Posted July 21, 2010 Prima data facem un PickUp , cautam linia AddStaticPickup si adaugam linia , acest pickup se afla in City Hall AddStaticPickup(1239, 23, 362.5067,173.6162,1008.3828); //BuyLicense Dupaia cautam "//Buyable Drugs for Drug Dealers" si adaugam asta : else if (PlayerToPoint(3, i,362.5067,173.6162,1008.3828)) { GameTextForPlayer(i, "~r~~h~ Cumpara o licenta ~n~~w~Scrie /buylicense", 5000, 5); } Iar acuma adaugam comanda if(strcmp(cmd, "/buylicense", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Lista|____"); SendClientMessage(playerid, COLOR_LIGHTRED,"_Licente_"); SendClientMessage(playerid, COLOR_YELLOW,"/Driving ($1500) "); SendClientMessage(playerid, COLOR_YELLOW,"/Flying ($10000)"); SendClientMessage(playerid, COLOR_YELLOW,"/Sailing ($500)"); SendClientMessage(playerid, COLOR_YELLOW,"/Fishing ($250)"); SendClientMessage(playerid, COLOR_YELLOW,"/Weapon ($25000)"); SendClientMessage(playerid, COLOR_LIGHTRED,"Sa nu uiti sa iti verifici licentele /licenses"); SendClientMessage(playerid, COLOR_LIGHTRED,"______________"); } else { SendClientMessage(playerid, COLOR_YELLOW,"Nu esti in Primarie/City Hall."); } return 1; } if(strcmp(cmd, "/driving", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Info|____"); SendClientMessage(playerid, COLOR_YELLOW,"Ati cumparat un permis de conducere."); SendClientMessage(playerid, COLOR_YELLOW,"Acesta a costat $1500."); SendClientMessage(playerid, COLOR_LIGHTRED,"_____________"); GivePlayerMoney(playerid,-1500); PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLic] = 1; } return 1; } if(strcmp(cmd, "/flying", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Info|____"); SendClientMessage(playerid, COLOR_YELLOW,"Ati cumparat o licenta de pilotat."); SendClientMessage(playerid, COLOR_YELLOW,"Acesta a costat $10000."); SendClientMessage(playerid, COLOR_LIGHTRED,"_____________"); GivePlayerMoney(playerid,-10000); PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLic] = 1; } return 1; } if(strcmp(cmd, "/sailing", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Info|____"); SendClientMessage(playerid, COLOR_YELLOW,"Ati cumparat o licenta de mers cu barca."); SendClientMessage(playerid, COLOR_YELLOW,"Aceasta a costat $500"); SendClientMessage(playerid, COLOR_LIGHTRED,"_____________"); GivePlayerMoney(playerid,-500); PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLic] = 1; } return 1; } if(strcmp(cmd, "/fishing", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Info|____"); SendClientMessage(playerid, COLOR_YELLOW,"Ati cumparat o licenta de pescuit."); SendClientMessage(playerid, COLOR_YELLOW,"Aceasta a costat $250."); SendClientMessage(playerid, COLOR_LIGHTRED,"_____________"); GivePlayerMoney(playerid,-250); PlayerInfo[playerid][pFishLic] = 1; PlayerInfo[playerid][pFishLic] = 1; } return 1; } if(strcmp(cmd, "/weapon", true) == 0) { if (PlayerToPoint(3, playerid,361.8299,173.7075,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTRED,"____|Info|____"); SendClientMessage(playerid, COLOR_YELLOW,"Ati cumparat o licenta de port-arma"); SendClientMessage(playerid, COLOR_YELLOW,"Aceasta a costat $25000."); SendClientMessage(playerid, COLOR_LIGHTRED,"_____________"); GivePlayerMoney(playerid,-25000); PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLic] = 1; } return 1; } Acest tutorial este pentru oamenii care nu au in GameMod factiune School Instructors / Licenses Faction.
WaLLy Posted July 21, 2010 Posted July 21, 2010 Frumos:D pacat ca stiam sa fac dar ia-i ajutat mult pe cei care nu situ +1
heatON Posted July 22, 2010 Posted July 22, 2010 Copy paste.De unde stii ca "//Buyable Drugs for Drug Dealers" exista in toate modurile rp? Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.Va salut cu respect (pe cei care merita).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now