Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: USA.Ghost on February 20, 2013, 12:31:41 pm

Title: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 20, 2013, 12:31:41 pm
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script(by that, i mean dont advertise scripts) or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 20, 2013, 09:47:35 pm
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.

Oh let me advertise my cafe in Ukraine, if someone will visit it.
So ban me now  ;D
Title: Re: Want anything in pawn? Ask here!
Post by: JackDawZ on February 20, 2013, 11:55:14 pm
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.

Oh let me advertise my cafe in Ukraine, if someone will visit it.
So ban me now  ;D

Ukraine, goddamn. Ну, Здарова, земляк.
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 21, 2013, 12:08:18 am
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.

Oh let me advertise my cafe in Ukraine, if someone will visit it.
So ban me now  ;D

Ukraine, goddamn. Ну, Здарова, земляк.

Здарова, Здарова ))) Сам откуда будешь? Давай чтоль постить на русском языке, хули, испанцам можно ведь)
Бля, с ноута неудобно пздц
Title: Re: Want anything in pawn? Ask here!
Post by: JackDawZ on February 21, 2013, 12:18:48 am
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.

Oh let me advertise my cafe in Ukraine, if someone will visit it.
So ban me now  ;D

Ukraine, goddamn. Ну, Здарова, земляк.

Здарова, Здарова ))) Сам откуда будешь? Давай чтоль постить на русском языке, хули, испанцам можно ведь)
Бля, с ноута неудобно пздц

Я из Киева :DDD
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 21, 2013, 12:46:02 am
Hello guys,
Do you have anthing you want to make in pawn (except functions in VK.Angel.OfDeaths script)?
This is the right place to make it.
You must follow the rules or it will be denied
Rules:
Do not give any script or advertiesment (except in your signature),
Do not ask for functions in the script: Angels Beta Mode.

Oh let me advertise my cafe in Ukraine, if someone will visit it.
So ban me now  ;D

Ukraine, goddamn. Ну, Здарова, земляк.

Здарова, Здарова ))) Сам откуда будешь? Давай чтоль постить на русском языке, хули, испанцам можно ведь)
Бля, с ноута неудобно пздц

Я из Киева :DDD

ну как у вас там погода? в Днепре снега нет)
Title: Re: Want anything in pawn? Ask here!
Post by: JackDawZ on February 21, 2013, 12:51:42 am
Та заебала эта зима конкретно уже, этот гребанный снег уже 2 месяца лежит и не тает, мороза нет, но всеравно херово как-то.

Кстати, этот пакистанский хрен может нас забанить, так, что лучше выбрать другую тему для постинга.
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 21, 2013, 12:55:39 am
Та заебала эта зима конкретно уже, этот гребанный снег уже 2 месяца лежит и не тает, мороза нет, но всеравно херово как-то.

Кстати, этот пакистанский хрен может нас забанить, так, что лучше выбрать другую тему для постинга.
который? тут этих чинов по колено
Title: Re: Want anything in pawn? Ask here!
Post by: [Saint] on February 21, 2013, 01:00:30 am
просто мимо проходил :D
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 21, 2013, 01:03:18 am
просто мимо проходил :D

Hoi!
угощайся пивком  :D
Title: Re: Want anything in pawn? Ask here!
Post by: mrockxkingbutt on February 21, 2013, 01:09:43 am
Yes I need a Bind Keys Function
to cuff a player like in vccnr
you need to near a player to cuff him
And
Getcar Fixed
to spawn car anytime
even you get enter and then get out of car
Title: Re: Want anything in pawn? Ask here!
Post by: [Saint] on February 21, 2013, 01:15:59 am
Yes I need a Bind Keys Function
to cuff a player like in vccnr
you need to near a player to cuff him
And
Getcar Fixed
to spawn car anytime
even you get enter and then get out of car

vccnr work on R2 (SQ) not Pawn
Title: Re: Want anything in pawn? Ask here!
Post by: mrockxkingbutt on February 21, 2013, 12:00:29 pm
SEE :)
OK CAN YOU MAKE GETCAR FIXED
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 21, 2013, 12:06:24 pm
SEE :)
OK CAN YOU MAKE GETCAR FIXED

We need to make a lot of experiments, but I'm not sure it will work. :(
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 21, 2013, 12:34:52 pm
Yes I need a Bind Keys Function
to cuff a player like in vccnr
you need to near a player to cuff him
And
Getcar Fixed
to spawn car anytime
even you get enter and then get out of car

vccnr work on R2 (SQ) not Pawn

I can make it work in pawn
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 21, 2013, 12:55:08 pm
Yes I need a Bind Keys Function
to cuff a player like in vccnr
you need to near a player to cuff him
And
Getcar Fixed
to spawn car anytime
even you get enter and then get out of car

I cant do bind keys, but i can do cmd /c cuff (if you want help with /c arrest, i can help you)

Put this on top of your gamemode
[pawn]new Acent;
Acent < 92;
new PlayerCuffed[Acent];[/pawn]
[pawn]public OnPlayerConnect(playerid)
{
PlayerCuffed[playerid] = 0;
return 1;
}[/pawn]
[pawn]OnPlayerCommandText(playerid, cmdtext)
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
{
if (strcmp(cmd, "cuff",true)==0)
{
new tmp, plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if (!IsPlayerCop(playerid)) SendClientMessage(playerid, COLOR_GREEN, "You are not a cop");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c cuff [playername/playerid]");
else if (!IsOwnedCuff(playerid)) SendClientMessage(playerid, COLOR_GREEN, "You do not have a cuff. Please get one at VCPD);//THIS IS OPTIONAL, ONLY USE THIS IF YOU WANT A FUNCTION THAT IF PLAYER HAS CUFF THEN HE CAN CUFF
else if (!IsPlayerConnected(plr)) SendClientMessage(playerid, COLOR_GREEN, "Error: Invalid player");
else if (GetPlayerDistance(playerid, plr)>=51) SendClientMessage(playerid, COLOR_RED, "You have to be closer to that player");//YOU NEED GUPS FOR THAT, IF YOU DONT HAVE COPY FROM THERE
else if (IsPlayerCop(plr)) SendClientMessage(playerid, COLOR_RED, "You can not cuff a cop");
else
{
PlayerCuffed[plr] = 1;
TogglePlayerControllable(plr, 0);
}
}
}
}[/pawn]
[pawn]public IsPlayerCop(playerid)
{
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
if (PlayerSkin[playerid] = 0) return 1;//REPLACE 0 WITH THE COP SKIN ID'S
}[/pawn]

Dont forget to give me credits!
I will give you getcar soon but i have bug fixed.
Here is getcar
[pawn]   else if ( strcmp( cmd, "!getcar", true ) == 0 )
   {

         new Float:Angle;
         GetPlayerPos( playerid, x, y, z); GetPlayerFacingAngle( playerid,Angle);
         if ( tmp > MAX_VEHICLES || tmp < 0) SendClientMessage( playerid, COLOR_GREEN, "Error: Invalid vehicle!" );
         
         SetVehiclePos( strval( tmp ),x+3,y+3,z,Angle);
         SetVehiclePos( strval( tmp ),x+3,y+3,z,Angle);
         PutPlayerInVehicle(playerid,strval( tmp ));
         format( szMsg, sizeof( szMsg ), "Spawning vehicle:[ %d ]", strval( tmp ) );
         SendClientMessage( playerid, COLOR_GREEN, szMsg );

      return 1;
   }[/pawn]
Please give me credits if you wont i wont help you anymore :P
Title: Re: Want anything in pawn? Ask here!
Post by: mrockxkingbutt on February 22, 2013, 07:28:06 am
ThAnks In Advance For Help
And i add credits ;)
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 22, 2013, 03:21:36 pm
ThAnks In Advance For Help
And i add credits ;)
Have fun!
Title: Re: Want anything in pawn? Ask here!
Post by: mrockxkingbutt on February 22, 2013, 11:20:13 pm
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(
Title: Re: Want anything in pawn? Ask here!
Post by: stormeus on February 23, 2013, 01:23:14 am
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 23, 2013, 01:28:28 am
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.

yeah, stormeus, is there any way to fix it?
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 23, 2013, 11:36:24 am
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.

yeah, stormeus, is there any way to fix it?

I fixed it, but i dont have time to post :( well i will do it later :)
Title: Re: Want anything in pawn? Ask here!
Post by: mrockxkingbutt on February 23, 2013, 02:00:38 pm
WOW :D
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 23, 2013, 02:48:17 pm
mrockxxkingbutt, can you tell me your server IP i wanna see it :P
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 23, 2013, 06:57:35 pm
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.

yeah, stormeus, is there any way to fix it?

I fixed it, but i dont have time to post :( well i will do it later :)

So all we need atm is your method, tell us, we'll do it  ;)
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 23, 2013, 08:58:19 pm
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.

yeah, stormeus, is there any way to fix it?

I fixed it, but i dont have time to post :( well i will do it later :)

So all we need atm is your method, tell us, we'll do it  ;)

Make it as to delete the vehicle when player exits it, and create a NEW vehicle that replaces its ID and it spawns on the same position, i will give you code later :P
Title: Re: Want anything in pawn? Ask here!
Post by: NeskWriter on February 23, 2013, 11:18:43 pm
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(

This is a known issue, and if you'd have searched around the forum you'd know that setting a vehicle's location does not work after a player enters it.

yeah, stormeus, is there any way to fix it?

I fixed it, but i dont have time to post :( well i will do it later :)

So all we need atm is your method, tell us, we'll do it  ;)

Make it as to delete the vehicle when player exits it, and create a NEW vehicle that replaces its ID and it spawns on the same position, i will give you code later :P

U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Title: Re: Want anything in pawn? Ask here!
Post by: Fire_Head on February 23, 2013, 11:41:01 pm
i need  Cmd and Function Like /c kidnaper /c offerdrugs !calltaxi 
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 25, 2013, 05:02:22 pm
U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Yes
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 25, 2013, 05:04:38 pm
i need  Cmd and Function Like /c kidnaper /c offerdrugs !calltaxi
I dont have time now :( i will do it tommorow :)
Title: Re: Want anything in pawn? Ask here!
Post by: Akcent Ohare on February 26, 2013, 12:52:30 am
U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Nice order. And also put the player at the end.
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on February 26, 2013, 03:20:00 pm
U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Nice order. And also put the player at the end.

I mean when player exits the vehicle not just a timer
Title: Re: Want anything in pawn? Ask here!
Post by: Akcent Ohare on February 27, 2013, 12:39:03 pm
U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Nice order. And also put the player at the end.

I mean when player exits the vehicle not just a timer

Deleting, replacing and creating the vehicle at the same time? Obviously, the timer is needed. What if it's bugged? Give the code.
Title: Re: Want anything in pawn? Ask here!
Post by: Aldo on March 01, 2013, 12:33:46 am
U mean using GetVehiclePos, DeleteVehicle when player leaves it, then SetVehiclePos on the coords we got using GetVehPos?
Nice order. And also put the player at the end.

I mean when player exits the vehicle not just a timer

Deleting, replacing and creating the vehicle at the same time? Obviously, the timer is needed. What if it's bugged? Give the code.

Oh god, Pawn is single threaded which means every thing is done one by one, which also means the vehicle will be deleted before the script can even crate the new one DERPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
Title: Re: Want anything in pawn? Ask here!
Post by: shaheersa on March 01, 2013, 08:14:18 am
Oh god, Pawn is single threaded which means every thing is done one by one, which also means the vehicle will be deleted before the script can even crate the new one DERPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP

so, that IS the correct order
Title: Re: Want anything in pawn? Ask here!
Post by: Akcent Ohare on March 06, 2013, 12:42:45 pm
Oh god, Pawn is single threaded which means every thing is done one by one, which also means the vehicle will be deleted before the script can even crate the new one DERPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP

No, it's not possible even in squirrel. I already mentioned the bugging problem of timer. It works well in squirrel, so, that order would work in squirrel as well. How can you say about Pawn? And what about 'one by one'? Each language requires a timer for that. Don't criticize until you're sure about it.
Title: Re: Want anything in pawn? Ask here!
Post by: stormeus on March 07, 2013, 02:17:55 am
And what about 'one by one'? Each language requires a timer for that. Don't criticize until you're sure about it.

The irony here is painful. Pawn and Squirrel both run all instructions and commands in a script one-by-one as the script dictates. There is no need for timers for a task as simple as that. I have no idea what you're talking about, and neither do you.
Title: Re: Want anything in pawn? Ask here!
Post by: Aldo on March 07, 2013, 03:38:25 pm
Oh god, Pawn is single threaded which means every thing is done one by one, which also means the vehicle will be deleted before the script can even crate the new one DERPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP

No, it's not possible even in squirrel. I already mentioned the bugging problem of timer. It works well in squirrel, so, that order would work in squirrel as well. How can you say about Pawn? And what about 'one by one'? Each language requires a timer for that. Don't criticize until you're sure about it.

My brain just blew up
Title: Re: Want anything in pawn? Ask here!
Post by: shaheersa on March 08, 2013, 08:42:27 am
My brain just blew up
lolol
Title: Re: Want anything in pawn? Ask here!
Post by: Akcent Ohare on March 09, 2013, 08:47:00 pm
Pawn and Squirrel both run all instructions and commands in a script one-by-one as the script dictates. There is no need for timers for a task as simple as that.

This is seldom a complex thought. The difference between timer and order is clear here. Just if I'm wrong, let it be a point that is either not cleared by you or the players.
Title: Re: Want anything in pawn? Ask here!
Post by: stormeus on March 09, 2013, 10:42:41 pm
This is seldom a complex thought. The difference between timer and order is clear here.

(http://i.imgur.com/npecBjH.gif)
Title: Re: Want anything in pawn? Ask here!
Post by: Akcent Ohare on March 17, 2013, 08:11:21 pm

(http://i.imgur.com/npecBjH.gif)

(http://i49.tinypic.com/j635o3.jpg)
Title: Re: Want anything in pawn? Ask here!
Post by: Fire_Head on April 05, 2013, 11:30:32 am
I think Ghost you Say Me a u give me Cmds and Function
/c kidnapper !calltaxi and Etc.............
Title: Re: Want anything in pawn? Ask here!
Post by: USA.Ghost on April 05, 2013, 12:55:56 pm
I think Ghost you Say Me a u give me Cmds and Function
/c kidnapper !calltaxi and Etc.............

~Stealing server scripts not allowed~
Title: Re: Want anything in pawn? Ask here!
Post by: Richard_Carl on April 16, 2013, 01:55:55 pm
i want a roleplay game mode of vcmp server plz
Title: Re: Want anything in pawn? Ask here!
Post by: aledark24 on April 16, 2013, 02:55:33 pm
i want a roleplay game mode of vcmp server plz
i have my own roleplay but is 100
% spanish....
if you traslate not is problem... and i uploading for you


answer....send me pm