Author Topic: Want anything in pawn? Ask here!  (Read 27093 times)

0 Members and 1 Guest are viewing this topic.

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #15 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
« Last Edit: February 22, 2013, 05:23:27 pm by USA.Ghost »



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #16 on: February 22, 2013, 07:28:06 am »
ThAnks In Advance For Help
And i add credits ;)
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #17 on: February 22, 2013, 03:21:36 pm »
ThAnks In Advance For Help
And i add credits ;)
Have fun!



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #18 on: February 22, 2013, 11:20:13 pm »
Need Help GETCAR BUG
IT DONT SPAWN ANY CAR :(
 >:(
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #19 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.
Do not PM me for support.




Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #20 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?


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #21 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 :)
« Last Edit: February 23, 2013, 12:38:18 pm by USA.Ghost »



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #22 on: February 23, 2013, 02:00:38 pm »
WOW :D
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #23 on: February 23, 2013, 02:48:17 pm »
mrockxxkingbutt, can you tell me your server IP i wanna see it :P



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #24 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  ;)


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #25 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



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #26 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?


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline Fire_Head

  • Street Thug
  • *
  • Posts: 35
    • View Profile
Re: Want anything in pawn? Ask here!
« Reply #27 on: February 23, 2013, 11:41:01 pm »
i need  Cmd and Function Like /c kidnaper /c offerdrugs !calltaxi 
« Last Edit: February 23, 2013, 11:49:42 pm by Fire_Head »

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #28 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



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Want anything in pawn? Ask here!
« Reply #29 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 :)



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan