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.


Messages - cycu

Pages: [1] 2
2
mIRC/pawn Scripting / Re: Some Tips for SQUIRREL ..(help)
« on: April 03, 2011, 06:35:44 pm »

3
mIRC/pawn Scripting / Re: flip command
« on: April 03, 2011, 04:50:27 pm »
lol i don't understand any thing!

Code: [Select]
if (strcmp(cmdtext, "flip", true) == 0)
{
    new Float:x, Float:y, Float:z;
    new pvehicle = GetPlayerVehicleID(playerid);
   
    GetVehiclePos(pvehicle, x, y, z);
   
    if(!IsPlayerInVehicle(playerid, pvehicle))
    {
            SendClientMessage(playerid, 0xFFFFFFAA, "You're not in vehicle!");
}
else
{
  SetVehiclePos(pvehicle, x, y, z, 0.0);
        SendClientMessage(playerid, 0xFFFFFFAA, "Your vehicle has been fliped.");
}
return 1;
}

However it won't work(tried) did little research - making your car flip in samp is done by SetVehicleZAngle(vehicleid, angle);
and vcmp does not have this function  >:(
      

4
mIRC/pawn Scripting / Re: DCMD in VC-MP
« on: April 01, 2011, 01:06:56 pm »
It won't work, the vc-mp pawn compiler is to old for dcmd.

O.o

I tested, it works fine with samp compiler and newer one however if it comes to vcmp version it won't understand the DCMD define line.

what the hek is dcmd

Fast command system from samp.

http://wiki.sa-mp.com/wiki/Dcmd

5
mIRC/pawn Scripting / Re: Drop money pickup on player dead ?? (pawno)!
« on: April 01, 2011, 01:03:27 pm »
 Hi  ;D, i was trying to create a more reallystic system for kill reward .. So i thought if would be possible to make a drop money for reward. I had many troubles when i make this .I know that i have to make a new pickup on player dead with the money ID , and them add the function of pickedup .
Quote
   if(pickupid == 7) {
IncPlayerHandCash( playerid, 100);      
      
But i don't know how to delete the pickup after player take money ..... Please if someone solve this , post the code or help me by PM  :D

 thx another timeee  :P

It really hurts my to say, but it's not possible at the moment.

6
kind of impossible fro pawno


You can't make anti cheat only for one trainer, however you can prevent some of the trainers functions, like health/armor spawning, i will create script later today, and will post here.

7
mIRC/pawn Scripting / Re: Pawno SUX!!
« on: April 01, 2011, 12:55:25 pm »
MAN Pawn sucks i has a lot of bugs and Dam shits warnings and crashes and Worse things that i won't worte it down
I announce that no more Help / Script from me cuz i left Pawn Scirpting  and i am scripting squirrel Its BEST its is BEST and its BEST it has a lot of functions more than pawn it has onPLayerFall onPlayerHealthChange etc and BEST of BEST it can change weather time can connect mirc .. So no pawn for me >_>

Wow OnPlayerFall, really useful function, however OnPlayerHealthChange is scriptable in pawn :)
On other hand i don't get the point of creating topic about you leaving pawn scripting scene, isn't it better just to say "I'm not scripting pawn anymore" when someone ask for help ?

Bye.

8
mIRC/pawn Scripting / Re: DCMD in VC-MP
« on: March 31, 2011, 10:09:20 pm »
It won't work, the vc-mp pawn compiler is to old for dcmd.

9
mIRC/pawn Scripting / Re: [Pawn]SetTime
« on: March 30, 2011, 04:06:44 pm »
Weird... SetWorldTime works just fine for me, however if the time is set to 24;00 i get "'Disco" weather and if you want to fix this you need to respawn.

So guess what guys:



Bugged.

10
Support / Re: Strange Things in Vice City
« on: March 30, 2011, 03:59:21 pm »
It's really hard to understand what you just wrote, at least some of this.

Anyone noticed the bug when you get shot with stubby but you don't fall down, bullets go through the skin i get -hp but i don't fall down ahmmm.

11
mIRC/pawn Scripting / Re: Prop Spawn
« on: March 29, 2011, 11:57:30 am »
Code: [Select]
And what this function will do is that it will check the prop ID which player owns and send him to right spawnI use
Code: [Select]
IsThatHisProperty

Sure that's fine i showed you only an example, it's up to you what name you will call it.

However i think you get the point ?

While player is spawning you have to check his Property ID and as mentioned above, use 'IsThatHisProperty' function to assign right spawn.

But! if you put this in OnPlayerSpawn the player will be bugged(Player can't shoot, enter cars) and the only solution for this is to jump once, but in the end it will be something like this: "What the hell is going on I'm bugged this server sucks"

I think the reason for this bug is because in on GameModeInit you have different spawn pos (AddPlayerClass/AddPlayerClassEx)
then in 'IsThatHisProperty' kind functions where SetPlayerPos is used which leads to this bug.

You can try to use SetTimer - so the function will be called e.g 700 milliseconds after spawn.

I will create tutorial later today called: 'Making your way around because there is no SetTimerEx function...'

8)


12
mIRC/pawn Scripting / Re: Prop Spawn
« on: March 28, 2011, 02:43:11 pm »
What you mean by prop spawn ? i don't get it so I'm not able to help you before i know what it is.

Propspawn Means if the property is owned then he can spawn at his property!

example : my property malibu

i enable propspawn and i spawn at malibu with any skin

Well this is quite simple, in OnPlayerSpawn you check if player owns property
If yes then you need Function e.g:

Code: [Select]
SetPlayerPropSpawn(playerid);
And what this function will do is that it will check the prop ID which player owns and send him to right spawn.

Basic Example:

Code: [Select]
public SetPlayerPropSpawn(playerid)
{
if(PlayerProp[playerid] == 1)
{
   SetPlayerPos(playerid,x,y,z,r,inter);
}
else if(PlayerProp[playerid] == 1)
{
   SetPlayerPos(playerid,x,y,z,r,inter);
}
}

Now this can't be done at the moment because, 2 really useful functions are missing:
Code: [Select]
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
Code: [Select]
SpawnPlayer(playerid)
However you could try with timers, but it won't work either because you need
Code: [Select]
SetTimerEx function which is obviously not added yet...

So at the moment it's not possible.

13
mIRC/pawn Scripting / Re: Prop Spawn
« on: March 28, 2011, 01:54:12 pm »
What you mean by prop spawn ? i don't get it so I'm not able to help you before i know what it is.

14
mIRC/pawn Scripting / Re: Skin Bugg!!
« on: March 27, 2011, 05:25:31 pm »
If you used SetPlayerSkin function then this is no surprise... it's bugged, otherwise i don't know what can be the problem.

Damn... i wish devs released 0.3r3 with only bug fixes for pawn...  :'(
Some of the most important things are bugged... it's kind pointless to make cool server at the moment...

15
mIRC/pawn Scripting / Re: HELP NEEDED GUYS!!!
« on: March 26, 2011, 11:37:00 pm »
is kind of like this but is bugged i need to fix it here is the command but i need to fix it i just gave to you maybe you got an idea so if you can fix it perfect! but i will try to fix it
Code: [Select]
else if (strcmp(cmd, "heal", true) == 0) {
tmp = strtok(cmdtext, idx);
new snick[256], plr,  szMsg[256];
snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN, "Usage: /c heal [Nick/ID]");
else {
format(szMsg,sizeof(szMsg),"%s Healed Player:[ %s ]",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_GREEN,szMsg);
SetPlayerHealth(plr,100);
}
return 1;
}

In first place i recommend you NOT using mode.pwn but make your own from scratch, this gm is so much NOT newbie friendly and sooooooo much against server performance.

Pages: [1] 2