Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: yazeen on March 02, 2011, 06:11:47 AM

Title: Little scripting help here
Post by: yazeen on March 02, 2011, 06:11:47 AM
im making a rpg server here are my doubt

. how to block the way just like sharks vs mario we cant go out

.viewing reports in server after posting reports [only for admins] delete report command too

.What is setanim command ?what is its use ?

.property making system in server eg:!addprop villa 50200

.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player

plse help

New questions added

.What is use of settimer and give me an example

there are many more questions but i forgot!!!

ill update it here when i get some questions  thx in advance
;D
Title: Re: Little scripting help here
Post by: BIG[H] on March 02, 2011, 12:09:39 PM
Quotehow to block the way just like sharks vs mario we cant go out

SetWorldsBound() in gamemode init :D

or else use Shadow PlayerToPoint(30,i,x,y,z);
copy and paste healall from gups and edit it with
if(PlayerToPoint(30,i,x,y,z) == 0) {
setplayerpos(bla bla);
}
and set timer in gamemode init

SetTimer("Playersinarea",500,1);

Quote.viewing reports in server after posting reports [only for admins] delete report command too
i need this too but i made reporting system i need how to check reports in game and delete i need this too
"Dini_Get something like"


Quote.What is setanim command ?what is its use ?
Set Player  Animation O_o like we type /do 4 or /sell it shows player doing somthing
in Pawn it is BUGGED
Quote.property making system in server eg:!addprop villa 50200
Gups has that But adding props while server running with pawn not possible u may manually add pickups of props but with mIRC its possible while server running u can add pickups



Quote.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player
Cool i need it too  
Title: Re: Little scripting help here
Post by: yazeen on March 02, 2011, 12:51:02 PM
Quote from: BIG[H] on March 02, 2011, 12:09:39 PM
Quotehow to block the way just like sharks vs mario we cant go out

SetWorldsBound() in gamemode init :D

or else use Shadow PlayerToPoint(30,i,x,y,z);
copy and paste healall from gups and edit it with
if(PlayerToPoint(30,i,x,y,z) == 0) {
setplayerpos(bla bla);
}
and set timer in gamemode init

SetTimer("Playersinarea",500,1);

Quote.viewing reports in server after posting reports [only for admins] delete report command too
i need this too but i made reporting system i need how to check reports in game and delete i need this too
"Dini_Get something like"


Quote.What is setanim command ?what is its use ?
Set Player  Animation O_o like we type /do 4 or /sell it shows player doing somthing
in Pawn it is BUGGED
Quote.property making system in server eg:!addprop villa 50200
Gups has that But adding props while server running with pawn not possible u may manually add pickups of props but with mIRC its possible while server running u can add pickups



Quote.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player
Cool i need it too  

thanks man
Title: Re: Little scripting help here
Post by: BIG[H] on March 02, 2011, 12:53:18 PM
 8)
Title: Re: Little scripting help here
Post by: heekz.shadow on March 02, 2011, 03:47:55 PM
I will post my answer to the last question when I will reach my home.I will give some that can help :D

new pizzas[MAX_PLAYERS];

forward SetPlayerMoneyLoss(playerid,ammount);
public SetPlayerMoneyLoss(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash-ammount);
/*new string[256];
format(string,sizeof(string),"You lost $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash-ammount;
}

Made by me in 2 mins.

forward SetPlayerMoneyAdds(playerid,ammount);
public SetPlayerMoneyAdds(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash+ammount);
/*new string[256];
format(string,sizeof(string),"You gained $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash+ammount;
}

also made by me in a few minutes.Those can help you :D
Title: Re: Little scripting help here
Post by: yazeen on March 09, 2011, 07:28:33 AM
Quote from: heekz.shadow on March 02, 2011, 03:47:55 PM
I will post my answer to the last question when I will reach my home.I will give some that can help :D

new pizzas[MAX_PLAYERS];

forward SetPlayerMoneyLoss(playerid,ammount);
public SetPlayerMoneyLoss(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash-ammount);
/*new string[256];
format(string,sizeof(string),"You lost $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash-ammount;
}

Made by me in 2 mins.

forward SetPlayerMoneyAdds(playerid,ammount);
public SetPlayerMoneyAdds(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash+ammount);
/*new string[256];
format(string,sizeof(string),"You gained $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash+ammount;
}

also made by me in a few minutes.Those can help you :D

u didnt reach home? :D
Title: Re: Little scripting help here
Post by: yazeen on March 09, 2011, 07:33:52 AM
New question added plse help guys
Title: Re: Little scripting help here
Post by: yazeen on March 09, 2011, 02:20:34 PM
Please say how to find world bound i heard there is a software called jacob's World Boundaries tool

but no download link plse help !!!  :)
Title: Re: Little scripting help here
Post by: yazeen on March 11, 2011, 08:24:19 AM
Wtf invalid index bad parameter error comes while hosting me server in the srv screen when i connect to server it crashes plse help me
Title: Re: Little scripting help here
Post by: BIG[H] on March 11, 2011, 02:42:39 PM
Man did you just added Createpickup thing..Remove it! its not in R2 0.3z maybe in 0.4
Title: Re: Little scripting help here
Post by: yazeen on March 12, 2011, 07:26:58 AM
Quote from: BIG[H] on March 11, 2011, 02:42:39 PM
Man did you just added Createpickup thing..Remove it! its not in R2 0.3z maybe in 0.4

Create pickup OOO wtf

Addstaticpickup?

Title: Re: Little scripting help here
Post by: BIG[H] on March 12, 2011, 02:12:35 PM
any other thing ??
Title: Re: Little scripting help here
Post by: yazeen on March 13, 2011, 05:54:09 AM
Quote from: BIG[H] on March 12, 2011, 02:12:35 PM
any other thing ??

Hey thx it worked anyway to addpickups? :(
Title: Re: Little scripting help here
Post by: BIG[H] on March 13, 2011, 12:24:53 PM
AddStaticPickup(id,model,x,y,z,ammo);
Title: Re: Little scripting help here
Post by: BIG[H] on March 15, 2011, 04:33:51 PM
in what??
Title: Re: Little scripting help here
Post by: yazeen on March 19, 2011, 07:07:39 AM
Quote from: BIG[H] on March 13, 2011, 12:24:53 PM
AddStaticPickup(id,model,x,y,z,ammo);

How to make respawn time Big[h] im using old version