• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Robd

#76
ShowRoom (pawn) / Re: Some usefull functions
February 17, 2011, 04:11:09 AM
^.^
how long have these "Scripting masterminds" been fighting, how about some 'Usefule Functions' in this topic.
I have idea settle your argument, whoever gives awesomess functions wins...
wins wat? idk, definetly not bragging rights because u too are bad enough already

now...

public SetPlayerWanted(playerid, amount)
{
new Wanted;
PlayerInfo[playerid][wanted] = amount;
Wanted = PlayerInfo[playerid][wanted];
GameTextForPlayerBottom(playerid, WantedBar(Wanted));
}

You will have to define some of the player info, but u can use all that data pretty well in an RPG script
#77
ShowRoom (pawn) / Re: Some usefull functions
February 15, 2011, 01:21:56 AM
Ya but it will take out some of the functionality
#78
To change color u can use the color codes on the wiki here
#79
mIRC/pawn Scripting / Re: One can! Llms in pawno (PWN)?
February 13, 2011, 04:47:29 PM
He's right it is very easy, I started a few months ago
#80
ShowRoom (pawn) / Re: BLACK PANTHER v 1.1
February 13, 2011, 06:04:22 AM
Good work, an interesting change from pawn, I particularly like the batch  :)
#81
ShowRoom (pawn) / Re: Some usefull functions
February 13, 2011, 05:36:54 AM
with the subnet function you could just make a command that adds a list of all the subnets and then compare them on player connect
This probably isnt ground breaking but here's a function for sending a message to players near another player

stock say(playerid,string[256])
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) {
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
            if (GetDistance(i,X,Y,Z) <= 10) {
SendClientMessage(i,COLOR_GREEN,string);
}
}
}
return 1;
}
#82
ShowRoom (pawn) / Incomplete tutorial script
February 12, 2011, 09:06:16 PM
This is just part of the script I use in my server with comments  on almost every line explaning a lot about variables, callbacks, and arrays
Just something to look at
http://www.megaupload.com/?d=XQTTCBZ3
#83
ShowRoom (pawn) / Re: [CP] Vehicle array
February 06, 2011, 04:58:40 AM
it compiles but when I use the command the car doesnt spawn and it gives me a message on console
"SCRIPT: Bad paramater count (32 != 7):
#84
Vice City / Re: VC First Freeroam
February 06, 2011, 04:40:53 AM
It is very risky and stupid, ya know unless you restrict kick/ban/warn to level 10 admins.
Did I do that!!?!?
I did!?!?!?

-thats right Robd is awesome   ;)

and btw we also have a votekick   :P
democracy ftw!

**edit** fixed some admin problems
Topic1
Topic2
#85
mIRC/pawn Scripting / Re: [Pawn]Timers
February 05, 2011, 05:30:50 PM
hmmm, glad i figured out a solution for this...
if anyone's interested i have an idea that would include using ServerInfo before the timer and then reading that in the actual function for later use...
#86
mIRC/pawn Scripting / [Pawn]SetTime
February 04, 2011, 11:47:15 PM
The function for setting time seems to do nothing, just wondering what I can do about this...
#87
mIRC/pawn Scripting / Re: [Pawn]Timers
February 04, 2011, 10:32:04 PM
Thank you  :)

One more question, sometimes when using timers with variables like

public test(playerid);
{
    PlayerInfo[playerid][test] = 1;
}

I get the same errors, is there anything i can do to avoid that?
#88
mIRC/pawn Scripting / Re: [Pawn]Timers
February 03, 2011, 10:48:59 PM
sometimes when i do a function like

stock test()
{
    SendClientMessageToAll(COLOR_GREEN,"blablabla");
    ServerInfo[0][variable] = 1;
}

SetTimer("test",10000,0");

it gives me syntax errors
#89
ShowRoom (pawn) / Re: [GM]Blank Server
February 03, 2011, 03:41:26 PM
You do realise a blank script is included with pawno right?
#90
mIRC/pawn Scripting / [Pawn]Timers
February 03, 2011, 03:40:45 PM
Timer's have been giving me a lot of syntax errors, could someone please explain the criteria for a timer to work?