• Welcome to Vice City Multiplayer.
 

Little scripting help here

Started by yazeen, March 02, 2011, 06:11:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yazeen

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

BIG[H]

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  
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

yazeen

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

BIG[H]

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

heekz.shadow

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


Pro Scripter[/b][/i][/u]

yazeen

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

yazeen

New question added plse help guys

yazeen

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 !!!  :)

yazeen

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

BIG[H]

Man did you just added Createpickup thing..Remove it! its not in R2 0.3z maybe in 0.4
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

yazeen

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?


BIG[H]

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

yazeen


BIG[H]

AddStaticPickup(id,model,x,y,z,ammo);
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

BIG[H]

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL