This site has been archived and made available for preservation purposes. No edits can be made.

Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Useful Function Thread (Frequently updated)

  1. #21

    Re: Useful Function Thread (Frequently updated)

    [quote author=Phoenix link=topic=33.msg3170#msg3170 date=1317638129]
    [quote author=Lorenc link=topic=33.msg129#msg129 date=1309070914]
    Code :
    #if !defined MAX_PLAYER_NAME
    	#define MAX_PLAYER_NAME 24 // 24 Characters, I don't know the limit yet...
    #endif
    stock ReturnPlayerName(clientid)
    {
    	new name[MAX_PLAYER_NAME];
    	GetPlayerName(clientid, name);
    	return name;
    }
    [/quote]
    Would be better so store it in a global variable and check the name while connecting
    [/quote]

    That function hasn't been updated in days!

    Code :
    #if !defined MAX_PLAYER_NAME
    	#define MAX_PLAYER_NAME 24 // 24 Characters, I don't know the limit yet...
    #endif
    new name{MAX_PLAYER_NAME};
     
    stock ReturnPlayerName(clientid)
    {
    	GetPlayerName(clientid, name);
    	return name;
    }


    Uses packed strings however, my laziness bumps me out of my I'm going to update the thread :/


    Post your functions in the thread as well ;D
    A gaming community ran by one person, with servers made by individuals (in this case, me, myself)
    I plan to look for a trusted person who will help me create a decent roleplay/deathmatch server on Vault-TEC,
    PM me if you're interested

  2. #22
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5

    Re: Useful Function Thread (Frequently updated)


  3. #23

    Re: Useful Function Thread (Frequently updated)

    [quote author=Recycler link=topic=33.msg3184#msg3184 date=1317662330]
    GetPlayerName is now

    https://wiki.vaultmp.com/index.php/GetName

    MAX_PLAYER_NAME is

    https://wiki.vaultmp.com/index.php/MAX_PLAYER_NAME


    [/quote]

    Yay! Can you soon bring some functions that set a certain index?

    Like for example:

    SetPlayerPos(playerid, Float: X, Float: Y, Float: Z);
    A gaming community ran by one person, with servers made by individuals (in this case, me, myself)
    I plan to look for a trusted person who will help me create a decent roleplay/deathmatch server on Vault-TEC,
    PM me if you're interested

Similar Threads

  1. ReplaceChars Function
    By Aeronix in forum PAWN
    Replies: 1
    Last Post: 09-03-2011, 06:35 PM
  2. New Forum Thread
    By Dantiko in forum Suggestions
    Replies: 0
    Last Post: 08-08-2011, 10:22 PM
  3. The Pawn Language has updated.
    By Kar in forum Discussion
    Replies: 1
    Last Post: 08-04-2011, 07:48 PM
  4. suggestion: new forum thread
    By shorun in forum Suggestions
    Replies: 0
    Last Post: 08-04-2011, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •