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 - NeskWriter

Pages: 1 [2] 3 4 ... 24
16
Snippet Showroom / GetPlayerNameFromID
« on: September 13, 2014, 01:48:01 pm »
Hey scripters, In short, this function returns player name from the ID, what might be useful.
Code: [Select]
stock GetPlayerNameFromID(playerid)
{
new str[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s", pname);
return str;
}

17
mIRC/pawn Scripting / Re: any one help plzzz
« on: September 09, 2014, 07:45:53 am »
sorry nesk writer i was saying that but can you help me i need your help when i compiled pwn script and the amx was of 0 kb

That's better. The thing is that the text doesn't take much memory so everything should be fine

18
mIRC/pawn Scripting / Re: can any one help me
« on: September 08, 2014, 03:32:20 pm »
I'm trying to help you, but as seen from your idiot attitude, even if someone helps you opening the server, it's gonna fail. Shitbag.

19
mIRC/pawn Scripting / Re: any one help plzzz
« on: September 07, 2014, 05:02:11 pm »
Compile the .pwn file via Pawno

20
mIRC/pawn Scripting / Re: can any one help me
« on: September 07, 2014, 05:01:39 pm »
idont know how to make scripts

Then why don't you learn how to?

21
mIRC/pawn Scripting / Re: can any one help me
« on: September 07, 2014, 10:53:29 am »
Why the fuck would anyone sinply give you the script he was probably hard working on? If you want to make vccnr real server, begin to learn Pawn and script it

22
Snippet Showroom / Re: Simple name detect
« on: September 01, 2014, 09:52:45 pm »
Who is Res?! is Res NE.restricted? i have his name there becuase he is a special person, he took off all the warning of my server, thats why ._.

Wow you even did notice that his name since few days is CrystalBlue

23
Snippet Showroom / Re: Simple name detect
« on: September 01, 2014, 09:07:56 pm »
Dude, of course someone else in this world has made it too, but i scripted it and im just sharing it.

Even if you'd do so, Why would your code have Res' name?

24
Snippet Showroom / Re: Simple name detect
« on: September 01, 2014, 08:53:11 pm »
Personally I don't find it useful, and I'd like to note that it's definitely made by Res

Quote from: The_Lucifer
today I made a simple name detect system
probably today you have been given a reply message in which Res sent you the code

25
Snippet Showroom / Re: Nice account info cmd
« on: September 01, 2014, 08:44:52 pm »
You should post all the functions included in your code.

Quote from: NE.Restricted
For forum moderators: Change my name to NE.CrystalBlue
For fuck sake Res

26
mIRC/pawn Scripting / Re: Need scripting help!
« on: August 26, 2014, 11:57:09 am »
not work!!!

?:D

He requested help, not posted his work.

27
mIRC/pawn Scripting / Re: Need scripting help!
« on: August 22, 2014, 04:03:55 pm »
Code: [Select]
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext,"engineoff", true)==0)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        KillVehicleEngine(vehicleid); // Engine off
        SendClientMessage(playerid,0xFFFFFFFF,"Car engine turned off,re-enter the vehicle to restart it.");
        return 1;
    }
    if (strcmp(cmdtext,"lightson",true)==0)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        SetVehicleLights(vehicleid,1); // Lights on
        SendClientMessage(playerid,0xFFFFFFFF,"Car headlights turned on");
        return 1;
    }
    if (strcmp(cmdtext,"lightsoff",true)==0)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        SetVehicleLights(vehicleid,0); // Lights off
        SendClientMessage(playerid,0xFFFFFFFF,"Car headlights turned off");
        return 1;
    }
    if (strcmp(cmdtext,"wakeup",true)==0)
    {
TogglePlayerControllable(playerid,1);
        SendClientMessage(playerid,0xFFFFFFFF,"You are now awake!");
        return 1;
}
    return 1;
}

Guess what was the problem? You typed " " (space) before and after each word in commands, like " lightson " instead of "lightson". Also, I'd recommend that you use more checks, and, tbh, I don't find /c wakeup useful.

28
mIRC/pawn Scripting / Re: Need scripting help!
« on: August 22, 2014, 03:47:32 pm »
My commands :

Quote
public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp(cmdtext," engineoff ", true)==0)
   {
      new vehicleid = GetPlayerVehicleID(playerid);
      KillVehicleEngine(vehicleid); // Engine off
      SendClientMessage(playerid,COLOR_WHITE,"Car engine turned off,re-enter the vehicle to restart it.");
       return 1;
   }
   if (strcmp(cmdtext," lightson ",true)==0)
   {
      new vehicleid = GetPlayerVehicleID(playerid);
      SetVehicleLights(vehicleid,1); // Lights on
      SendClientMessage(playerid,COLOR_WHITE,"Car headlights turned on");
      return 1;
   }
   else if (strcmp(cmdtext," lightsoff ",true)==0)
   {
       new vehicleid = GetPlayerVehicleID(playerid);
       SetVehicleLights(vehicleid,0); // Lights off
       SendClientMessage(playerid,COLOR_WHITE,"Car headlights turned off");
       return 1;
    }
    if (strcmp(cmdtext," wakeup ",true)==0)
   {
        TogglePlayerControllable(playerid,1);
       SendClientMessage(playerid,COLOR_WHITE,"You are now awake!");
       return 1;
    }
   return 1;
}

Are you sure all the commands don't work?

29
mIRC/pawn Scripting / Re: Need scripting help!
« on: August 22, 2014, 03:45:55 pm »
What code should I put if I don't want the pickup to work for team Tommy?

if(GetPlayerTeam(playerid) != Tommy)//Your Tommy team ID instead of "Tommy"

30
mIRC/pawn Scripting / Re: Need scripting help!
« on: August 22, 2014, 03:34:08 pm »
1.
Code: [Select]
public OnPickedUp(pickupid, playerid)//a function that is called once player picks something up
{
    if(pickupid == ID)//replace the "ID" with the id of a pickup you want to act
    {
        new Float:ph;//creating a variable to store player health in
        GetPlayerHealth(playerid, ph);//by this we get hp of a player who picked up the pickup and store it in "ph"
        SetPlayerHealth(playerid, ph + 50);//by ph + 50 we increase player's hp by 50 points
    }
    return 1;
}

2. Post here the code including your command

3. Make a check to make sure that Diaz team picked the pickup up. :D

Code: [Select]
public OnPickedUp(pickupid, playerid)
{
    if(GetPlayerTeam(playerid) == Diaz)//replace "Diaz" with your ID you gave to Diaz team.
    {
        //declare here what you want the pickup to do to diaz team players once one of them picks it up.
    }
}

Pages: 1 [2] 3 4 ... 24