• 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

#46
mIRC/pawn Scripting / Re: 0.3z rcon Commands
March 27, 2011, 07:36:29 AM
SendRconCommand doesnt work for me.
You guys work hard with this VCMP thing but you seriously need to fix some of these bugs
#47
mIRC/pawn Scripting / Re: Anti-Speed hack
March 27, 2011, 07:25:18 AM
I think they're right about the lack of need... if you really want it then look at the format of some speedometers and just make it where if speed goes past a certain amount to kick/ban/whatever u want
#48
ShowRoom (pawn) / Re: Location code for pawn
March 27, 2011, 07:23:47 AM
If it resets itself then why would you need to reset it yourself?
#49
ShowRoom (pawn) / Re: Some useful script
March 27, 2011, 07:20:56 AM
Quote from: Castagna96 on March 22, 2011, 04:11:47 AM
something is wrong with the call thing when i try to put /c call it says you are in a call right now can u fix it plz !!
Forgot something OnPlayerConnect

added to main post, just so you dont have to sift

QuoteAdd this to OnPlayerConnect
PlayerInfo[playerid][call] = 100;
#50
ShowRoom (pawn) / Re: Some usefull functions
March 27, 2011, 07:18:39 AM
Quote from: BIG[H] on March 25, 2011, 08:19:18 AM
Nah who said that you are pro in scripting? Can you make a keycard?
Yes, make a pickup. OnPlayerPickup make a series of functions for that pickup. In those add a enum for the player and change it to that they do have keycard. then make a command (or a constant timer that detects range) that opens if they have picked it up.

;D

and no, im not pro, but im above average and i get it done.
#51
ShowRoom (pawn) / Re: Speedometer by Madara
March 27, 2011, 07:16:12 AM
Well, glad to see the pawn scripts picking up... sad thing is

You came up with this like 1 day before me!!!!

((and I did mine myself))

Shutup, I know I'm a noob that thinks he's awesome but because I wrote this I must realise how awesome I aren't.
but yet i continue to think im awesome so....
#52
ShowRoom (pawn) / Re: [RELEASED][RPG] Gamemode
March 27, 2011, 07:13:30 AM
I don't know how to say it nicely, but what's so awesome about this...
It seems like a lot of glorified simple stuff to me.

Like I said, sorry, but...

Well, let me take another look at this
#53
SendRconCommand is bugged and there's no weather function so your screwed.
#54
Shouldn't this be in showroom?
#55
I haven't had any luck even making a command to set weather...
#56
just because i was a noob and cudnt read doesnt mean he dont do credits, lol

and I had this made first, it wasn't just idea.
#57
**Edit** wow im stupid, stupid green text hurts my eyes, lol. Probably shud mod this post to not look like a total n00b, but honestly it was kinda funny so it stays

My original stupid post:
omg idea steal :S
You could have at least given me credit for the idea/timer rates that I gave you
#58
ShowRoom (pawn) / Re: Some usefull functions
March 23, 2011, 11:06:54 PM
Because I'm awesome... duh
#59
ShowRoom (pawn) / Re: Some usefull functions
March 23, 2011, 03:47:38 PM
public Model(vehicleid)
{
new x[256];
    if (vehicleid == 130) x = "Land Stalker";
else if (vehicleid == 131) x = "Idaho";
else if (vehicleid == 132) x = "Stinger";
else if (vehicleid == 133) x = "Line Runner";
else if (vehicleid == 134) x = "Perennial";
else if (vehicleid == 135) x = "Sentinel";
else if (vehicleid == 136) x = "Rio";
else if (vehicleid == 137) x = "Fire Truck";
else if (vehicleid == 138) x = "Trash Master";
else if (vehicleid == 139) x = "Stretch";
else if (vehicleid == 140) x = "Manana";
    else if (vehicleid == 141) x = "Infernus";
else if (vehicleid == 142) x = "Voodo";
else if (vehicleid == 143) x = "Pony";
else if (vehicleid == 144) x = "Mule";
else if (vehicleid == 145) x = "Cheetah";
else if (vehicleid == 146) x = "Ambulance";
else if (vehicleid == 147) x = "Washington";
else if (vehicleid == 148) x = "Moon Beam";
else if (vehicleid == 149) x = "Esperanto";
else if (vehicleid == 150) x = "Taxi";
    else if (vehicleid == 151) x = "Washington";
else if (vehicleid == 152) x = "Bobcat";
else if (vehicleid == 153) x = "Ice Cream";
else if (vehicleid == 154) x = "Injection";
else if (vehicleid == 155) x = "Apache";
else if (vehicleid == 156) x = "Squad Car";
else if (vehicleid == 157) x = "Enforcer";
else if (vehicleid == 158) x = "Armored Car";
else if (vehicleid == 159) x = "Banshee";
else if (vehicleid == 160) x = "Coast Guard";
    else if (vehicleid == 161) x = "Bus";
else if (vehicleid == 162) x = "Tank";
else if (vehicleid == 163) x = "Baracks";
else if (vehicleid == 164) x = "Hermes";
else if (vehicleid == 165) x = "Police Maverick";
else if (vehicleid == 166) x = "Angel";
else if (vehicleid == 167) x = "Public Bus";
else if (vehicleid == 168) x = "Taxi";
else if (vehicleid == 169) x = "Stallion";
else if (vehicleid == 170) x = "Rumpo";
    else if (vehicleid == 171) x = "Bandit";
else if (vehicleid == 172) x = "Hearse";
else if (vehicleid == 173) x = "Packer";
else if (vehicleid == 174) x = "Sentinel";
else if (vehicleid == 175) x = "Admiral";
else if (vehicleid == 176) x = "Squalo";
else if (vehicleid == 177) x = "Sparrow";
else if (vehicleid == 178) x = "Pizza";
else if (vehicleid == 179) x = "Borrito";
else if (vehicleid == 180) x = "INVALID";
    else if (vehicleid == 181) x = "INVALID";
else if (vehicleid == 182) x = "Speeder";
else if (vehicleid == 183) x = "Reefer";
else if (vehicleid == 184) x = "Tropic";
else if (vehicleid == 185) x = "INVALID";
else if (vehicleid == 186) x = "Yankee";
else if (vehicleid == 187) x = "Golf Cart";
else if (vehicleid == 188) x = "l33t cab";
else if (vehicleid == 189) x = "Top Fun";
else if (vehicleid == 190) x = "Skimmer";
    else if (vehicleid == 191) x = "PCJ";
else if (vehicleid == 192) x = "Faggio";
else if (vehicleid == 193) x = "Freeway";
else if (vehicleid == 194) x = "Baron";
else if (vehicleid == 195) x = "Raider";
else if (vehicleid == 196) x = "Glendale";
else if (vehicleid == 197) x = "Oceanic";
else if (vehicleid == 198) x = "Sanchez";
else if (vehicleid == 199) x = "Sparrow";
else if (vehicleid == 200) x = "Patriot";
else if (vehicleid == 201) x = "Limo";
else if (vehicleid == 202) x = "Coast Guard";
else if (vehicleid == 203) x = "Dinghy";
else if (vehicleid == 204) x = "Hermes";
else if (vehicleid == 205) x = "Sabre";
else if (vehicleid == 206) x = "Sabre";
else if (vehicleid == 207) x = "Phoenix";
else if (vehicleid == 208) x = "Walton";
else if (vehicleid == 209) x = "Regina";
else if (vehicleid == 210) x = "Patriot";
else if (vehicleid == 211) x = "Deluxo";
else if (vehicleid == 212) x = "Burrito";
else if (vehicleid == 213) x = "Spand";
else if (vehicleid == 214) x = "Marquis";
else if (vehicleid == 215) x = "Baggage";
else if (vehicleid == 216) x = "Taxi";
else if (vehicleid == 217) x = "Maverick";
else if (vehicleid == 218) x = "Maverick";
else if (vehicleid == 219) x = "Rancher";
else if (vehicleid == 220) x = "Rancher";
else if (vehicleid == 221) x = "Virgo";
else if (vehicleid == 222) x = "Greenwood";
else if (vehicleid == 223) x = "Jetmax";
else if (vehicleid == 224) x = "Hotring";
else if (vehicleid == 225) x = "Monster Truck";
else if (vehicleid == 226) x = "Blista";
else if (vehicleid == 227) x = "Maverick";
else if (vehicleid == 228) x = "Boxville";
else if (vehicleid == 229) x = "Benson";
else if (vehicleid == 230) x = "Jeep";
else if (vehicleid == 231) x = "Goblin";
else if (vehicleid == 232) x = "Hotring";
else if (vehicleid == 233) x = "Hotring";
else if (vehicleid == 234) x = "Bloodring";
else if (vehicleid == 235) x = "Bloodring";
else if (vehicleid == 236) x = "Cheetah";
else x = "INVALID";
return x;
}


You send this a model and it returns the car's name. To get a model you might want to make an enum like this
enum cInfo
{
model
}

new CarInfo[180][cInfo];


then if you're using pawn find "LoadVehicles"
change to
public LoadVehicles()
{
print("Loading vehicles, please wait...");
new XU;
if(!dini_Exists("/Vehicles/list.ini")) return -1;
new data[7][256];
for (XU=1; XU<=250; XU++) {
new pos[256],fm[6];
format(fm,sizeof(fm),"%d",XU);
pos = dini_Get("/Vehicles/list.ini",fm);
if (strlen(pos)) {
new id;
            split(pos,data,' ');
id = AddStaticVehicle(strval(data[0]),floatstr(data[1]),floatstr(data[2]),floatstr(data[3]),floatstr(data[4]),strval(data[5]),strval(data[6]));
//printf("Creating Vehicle! ModelID:[ %d ] Colors:[ %d ; %d ]",strval(data[0]),strval(data[5]),strval(data[6]));
CarInfo[id][model] = strval(data[0]);
}
}
printf("Vehicles Loaded!");
return asp;
}
#60
ShowRoom (pawn) / Some useful script
March 21, 2011, 11:50:10 PM
This code is all made by me

Phone system:
else if (strcmp(cmd, "call", true) == 0) {
new plr;
tmp = strtok(cmdtext,idx);
plr = FindPlayerIDFromString(tmp);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid,COLOR_GREEN,"Please login first");
else if(PlayerInfo[playerid][call] != 100) SendClientMessage(playerid,COLOR_GREEN,"You are already in a call");
else if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN,"Use /c call <Nick/ID>");
else if(plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_GREEN,"Unknown player");
else if(PlayerInfo[plr][call] != 100) SendClientMessage(playerid,COLOR_GREEN,"You hear a busy tone");
else {
new szMsg[256];
format(szMsg,sizeof(szMsg),"Calling %s",gPlayers[plr]);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
format(szMsg,sizeof(szMsg),"Incoming call from %s, use /c accept and /c decline",gPlayers[playerid]);
SendClientMessage(plr,COLOR_GREEN,szMsg);
PlayerInfo[plr][caller] = playerid;
}
return 1;
}
else if (strcmp(cmd, "accept", true) == 0) {
if(PlayerInfo[playerid][caller] == 100) SendClientMessage(playerid,COLOR_GREEN,"No one has called you");
else {
SendClientMessage(playerid,COLOR_GREEN,"You have accepted a call, use /c c <text> to talk");
SendClientMessage(PlayerInfo[playerid][caller],COLOR_GREEN,"Your call has been accepted, use /c c <text> to talk");
PlayerInfo[playerid][call] = PlayerInfo[playerid][caller];
PlayerInfo[PlayerInfo[playerid][caller]][call] = playerid;
PlayerInfo[playerid][caller] = 100;
}
}
else if (strcmp(cmd, "decline", true) == 0) {
if(PlayerInfo[playerid][caller] == 100) SendClientMessage(playerid,COLOR_GREEN,"No one has called you");
else {
SendClientMessage(playerid,COLOR_GREEN,"You have denied your call");
SendClientMessage(PlayerInfo[playerid][caller],COLOR_GREEN,"Your call has been denied");
PlayerInfo[playerid][caller] = 100;
}
}
else if (strcmp(cmd, "c", true) == 0) {
new szMsg[256];
tmp = strtok(cmdtext, idx);
if (PlayerInfo[playerid][call] == 100) SendClientMessage(playerid, COLOR_GREEN, "You are not in a call");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "/c c <text>");
else {
format(szMsg, sizeof(szMsg), "[Phone][%s]: %s", gPlayers[playerid], cmdtext);
SendClientMessage(PlayerInfo[playerid][call],COLOR_GREEN,szMsg);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
return 1;
}
else if (strcmp(cmd, "hangup", true) == 0) {
if(PlayerInfo[playerid][call] == 100) SendClientMessage(playerid,COLOR_GREEN,"You are not in a call");
else {
SendClientMessage(playerid,COLOR_GREEN,"You hangup the phone");
SendClientMessage(PlayerInfo[playerid][call],COLOR_GREEN,"Phone call ended");
PlayerInfo[PlayerInfo[playerid][call]][call] = 100;
PlayerInfo[playerid][call] = 100;
}
}
You will also need to add the following to the PlayerInfo enum
call
caller


add PlayerInfo[playerid][call] = 100;
to OnPlayerConnect

and for a speedometer

public speedometer()
{
   for(new i = 0; i <= MAX_PLAYERS; i++) {
       if(IsPlayerConnected(i) == 1) {
   new Float:X,Float:Y,Float:Z,szMsg[256],MPH,distance;
   GetPlayerPos(i,X,Y,Z);
   distance = GetPointDistance(PlayerInfo[i][Xp],PlayerInfo[i][Yp],PlayerInfo[i][Zp],X,Y,Z);
   MPH = distance * 4;
   PlayerInfo[i][Xp] = X;
   PlayerInfo[i][Yp] = Y;
   PlayerInfo[i][Zp] = Z;
   format(szMsg,sizeof(szMsg),"~o~MPH ~r~%d",MPH);
   GameTextForPlayerBottom(i,szMsg);
       }
   }
}

stock GetPointDistance(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
new Float:tmpdis;
tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
return floatround(tmpdis);
}

and to OnGameModeInit

SetTimer("speedometer",500,true);

and to the PlayerInfo enum

Float:Xp
Float:Yp
Float:Zp