Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: aledark24 on November 10, 2012, 05:07:39 pm
-
Special credits for Yonni Suarez "nice idea men"
Warning "sorry for my bad english"
[pawn]/*This food system is for all script,warchief-gups or fc-or from 0*/
#define COLOR_PINK 0xFFC0CBAA
#define COLOR_GREEN 0xE8941EFF
#define COLOR_YELLOW 0xFFFF00AA
new Cafe[MAX_PLAYERS];
new Pizza[MAX_PLAYERS];
new Bebida[MAX_PLAYERS];
//===============================================================================
public OnPlayerDisconnect(playerid, reason)
{
Cafe[playerid] = 0;
Pizza[playerid] = 0;
Bebida[playerid] = 0;
return 1;
}
//===============================================================================
public OnPlayerDeath(playerid,killerid,reason)
{
Cafe[playerid] = 0;
Pizza[playerid] = 0;
Bebida[playerid] = 0;
return 1;
}
[/pawn]
[pawn]//===============================================================================
/* This is for script from 0*/
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext, "Foods", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
return 1;
}
else if(strcmp(cmdtext, "buyp", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Pizza[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");
}
if(Pizza[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You buy a pizza!");
Pizza[playerid] = 1;
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, you need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Need go to the pizzeria!");
}
return 1;
}
else if(strcmp(cmdtext, "buyb", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Bebida[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For drink a bebida type /c drinkb");
}
if(Bebida[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
Bebida[playerid] = 1;
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 10);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money,need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Need go to the pizzeria!");
}
return 1;
}
else if(strcmp(cmdtext, "buyc", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Cafe[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"To drink coffee type /c drinkc");
}
if(Cafe[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee!");
Cafe[playerid] = 1;
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 25);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money,need 150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Go to the cafeteria Robina or the pizza place!");
}
return 1;
}
else if(strcmp(cmdtext, "eatp", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Pizza[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Not have a pizza!");
}
if(Pizza[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[PIZZA]:You eat a pizza and recovery you energy!");
SetTimer("comiendopizza", 5000, false);
Pizza[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkc", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Cafe[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"buy a coffee first!!");
}
if(Cafe[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink you coffee and recovery energy!");
SetTimer("tomandocafe", 5000, false);
Cafe[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkb", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Bebida[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Buy drink first!!");
}
if(Bebida[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink and recovery you energy!");
SetTimer("tomandobebida", 5000, false);
Bebida[playerid] = 0;
}
return 1;
} [/pawn]
[pawn] /* ------------- For script warchief ------------ */
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext, "Foods", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
return 1;
}
else if(strcmp(cmdtext, "buyp", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Pizza[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");
}
if(Pizza[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a pizza");
Pizza[playerid] = 1;
DecPlayerCash(playerid,150);
}
if(cash < 150) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Go to the pizzeria for buy a pizza");
}
return 1;
}
else if(strcmp(cmdtext, "buyb", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Bebida[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For drink type /c drinkb");
}
if(Bebida[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
Bebida[playerid] = 1;
DecPlayerCash(playerid,150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Go to the pizzeria");
}
return 1;
}
else if(strcmp(cmdtext, "buyc", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Cafe[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For drink a coffee, type /c drinkc");
}
if(Cafe[playerid] == 0) {
if(cash >= 25) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee");
Cafe[playerid] = 1;
DecPlayerCash(playerid,150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Go to Cafeteria Robina or The pizzeria for buy a coffee!");
}
return 1;
}
else if(strcmp(cmdtext, "eatp", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Pizza[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"not have a pizza");
}
if(Pizza[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[Eating]:Eating pizza!");
SetTimer("comiendopizza", 5000, false);
Pizza[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkc", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Cafe[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Need buy a coffee!!");
}
if(Cafe[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink a coffee and recovery energy!");
SetTimer("tomandocafe", 5000, false);
Cafe[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkb", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Bebida[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Not have a drink!!");
}
if(Bebida[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:Drink and recovery energy!");
SetTimer("tomandobebida", 5000, false);
Bebida[playerid] = 0;
}
return 1;
} [/pawn]
[pawn] /* ------- For script gups or Fight City ------- */
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext, "Foods", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
return 1;
}
else if(strcmp(cmdtext, "buyp", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Pizza[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");
}
if(Pizza[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a pizza");
Pizza[playerid] = 1;
DecPlayerHandCash(playerid,150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Go to the pizzeria for buy a pizza");
}
return 1;
}
else if(strcmp(cmdtext, "buyb", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Bebida[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For drink type /c drinkb");
}
if(Bebida[playerid] == 0) {
if(cash >= 150) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
Bebida[playerid] = 1;
DecPlayerHandCash(playerid,150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Go to the pizzeria");
}
return 1;
}
else if(strcmp(cmdtext, "buyc", true) == 0) {
if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
new cash = GetPlayerMoney(playerid);
if(Cafe[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"For drink a coffee, type /c drinkc");
}
if(Cafe[playerid] == 0) {
if(cash >= 25) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee");
Cafe[playerid] = 1;
DecPlayerHandCash(playerid,150);
}
if(cash < 100) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Go to Cafeteria Robina or The pizzeria for buy a coffee!");
}
return 1;
}
else if(strcmp(cmdtext, "eatp", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Pizza[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"not have a pizza");
}
if(Pizza[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[Eating]:Eating pizza!");
SetTimer("comiendopizza", 5000, false);
Pizza[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkc", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Cafe[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Need buy a coffee!!");
}
if(Cafe[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink a coffee and recovery energy!");
SetTimer("tomandocafe", 5000, false);
Cafe[playerid] = 0;
}
return 1;
}
else if(strcmp(cmdtext, "drinkb", true) == 0) {
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Bebida[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Not have a drink!!");
}
if(Bebida[playerid] == 1) {
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
SendClientMessage(playerid,COLOR_RED,"[Drink]:Drink and recovery energy!");
SetTimer("tomandobebida", 5000, false);
Bebida[playerid] = 0;
}
return 1;
}
[/pawn]
[pawn]
//===============================================================================
public comiendopizza(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
TogglePlayerControllable(i,1);
SetPlayerHealth(i,100);
SendClientMessage(playerid,COLOR_YELLOW,"You eating a pizza and recovery you energy");
}
}
}
//===============================================================================
public tomandocafe(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
TogglePlayerControllable(i,1);
SetPlayerHealth(i,100);
SendClientMessage(playerid,COLOR_YELLOW,"You drinking a coffee and recovery you energy");
}
}
}
//===============================================================================
public tomandobebida(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
TogglePlayerControllable(i,1);
SetPlayerHealth(i,100);
SendClientMessage(playerid,COLOR_YELLOW,"You drinking a drink and recovery you energy");
}
}
}
//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
//==============================================================================
/* This commands is for food system, you need go to any pizzeria in the city for buy, and for eat or drink you type the command everywhere*/
/* BY ALEDARK24 FOR ROLEPLAY SCRIPTS , DO YOU LIKE THIS COMMANDS ¿¿?? GIVEME THANKS OR CREDITS IN YOU SERVER */[/pawn]
-
[pawn]
/* Finally the command for buy marihuana and smoke*/
new Marihuana[MAX_PLAYERS];
//===============================================================================
public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
Marihuana[playerid] = 0;
}
return 1;
//===============================================================================
public OnPlayerDisconnect(playerid, reason)
{
Marihuana[playerid] = 0;
}
return 1;
}
//=============================================================================== [/pawn]
[pawn] /*Copy this in Script from 0*/
if(strcmp(cmdtext, "smoking", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
return 1;
}
else if(strcmp(cmdtext, "marihuana", true) == 0) {
if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
new cash = GetPlayerMoney(playerid);
if(Marihuana[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
}
if(Marihuana[playerid] == 0) {
if(cash >= 250) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
Marihuana[playerid] = 1;
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 250);
}
if(cash < 200) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina and the house of little havana!");
}
return 1;
}
else if(strcmp(cmdtext, "smoke", true) == 0) {
if(Marihuana[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
}
if(Marihuana[playerid] == 1) {
SetPlayerDrunk(playerid,120);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
SetTimer("Fumando", 150000, false);
Marihuana[playerid] = 0;
}
return 1;
} [/pawn]
[pawn] /* Copy this For script warchief */
if(strcmp(cmdtext, "smoking", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
return 1;
}
else if(strcmp(cmdtext, "marihuana", true) == 0) {
if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
new cash = GetPlayerMoney(playerid);
if(Marihuana[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
}
if(Marihuana[playerid] == 0) {
if(cash >= 250) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
Marihuana[playerid] = 1;
DecPlayerCash(playerid,250);
}
if(cash < 200) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina, and the house of little havana!");
}
return 1;
}
else if(strcmp(cmdtext, "smoke", true) == 0) {
if(Marihuana[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
}
if(Marihuana[playerid] == 1) {
IncPlayerDrunk(playerid,120);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
SetTimer("Fumando", 150000, false);
Marihuana[playerid] = 0;
}
return 1;
} [/pawn]
[pawn] /* Copy this For script Gups or Fight City */
if(strcmp(cmdtext, "smoking", true) == 0) {
SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
return 1;
}
else if(strcmp(cmdtext, "marihuana", true) == 0) {
if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
new cash = GetPlayerMoney(playerid);
if(Marihuana[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
}
if(Marihuana[playerid] == 0) {
if(cash >= 250) {
SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
Marihuana[playerid] = 1;
DecPlayerHandCash(playerid,250);
}
if(cash < 200) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina, and the house of little havana!");
}
return 1;
}
else if(strcmp(cmdtext, "smoke", true) == 0) {
if(Marihuana[playerid] == 0) {
SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
}
if(Marihuana[playerid] == 1) {
SetPlayerDrunk(playerid,120);
GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
SetTimer("Fumando", 150000, false);
Marihuana[playerid] = 0;
}
return 1;
} [/pawn]
[pawn]//===============================================================================
public Fumando(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
SetPlayerDrunk(i,0);
SendClientMessage(playerid,COLOR_YELLOW,"You to past the effect of the marihuana,you need to buy more!");
}
}
}
//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
//==============================================================================
[/pawn]
(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash3/536673_4854876847581_213501139_n.jpg)
(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-ash4/305564_4854877087587_1697002751_n.jpg)
(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/148465_4854877807605_15772336_n.jpg)
(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/548945_4854878287617_587195373_n.jpg)
(https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-prn1/532266_4854878767629_1555211568_n.jpg)
(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-snc7/602386_4854879167639_1479139763_n.jpg)
(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-prn1/521734_4854879447646_408822014_n.jpg)
-
Gracias 8)
-
Poor english, rest is decent.
-
Poor english, rest is decent.
wtf you are very stupid ....
que tal mi ingles ahora!
-
Nice script ;)
"whrite" is "write" and "marihuana" is "marijuana" :P
-
Nice script ;)
"whrite" is "write" and "marihuana" is "marijuana" :P
jeje ;D my language is Spanish :-[ i translate to English very fast in my head,
i don't know all words in English
but thank you sseebbyy
-
This script is too large to be a "snippet." Please make this a filterscript and post it in the Pawn Showroom.
-
This script is too large to be a "snippet." Please make this a filterscript and post it in the Pawn Showroom.
The command not is large only is different forms for all script i make one filterscript but only working in script from 0 because not discount the real money from the account of the player.
-
Nice script ;)
"whrite" is "write" and "marihuana" is "marijuana" :P
jeje ;D my language is Spanish :-[ i translate to English very fast in my head,
i don't know all words in English
but thank you sseebbyy
All the more you should speak english like it's your native lang
-
The command not is large only is different forms for all script i make one filterscript but only working in script from 0 because not discount the real money from the account of the player.
I consider it too large when I can't merge the two posts you made for this because it's larger than 20,000 characters. Please consider making this a filterscript instead.
-
Ok but not have internet in my house
this reply is from my cellphone
i change when go tothe ciber