SA-MP Forums Archive
4 questions - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 4 questions (/showthread.php?tid=238143)



4 questions - ElChapoGuzman - 11.03.2011

1. Is there any fs that is like atm and if so link?
2. How many objects can be attatched to a player?
3. How can I create a text draw at the right bottom corner telling him his kills deaths and and his KDR IMPORTANT
4. I need to know if its possible to do /skin 1-284 without putting all ids in my script same with money and score etc.
would really apreciate if you answered thank you


Re: 4 questions - Roomeo - 11.03.2011

4. i need this too /skin 1-284


Re: 4 questions - BASITJALIL - 11.03.2011

1.Dont understand
2.1 At a time
3.You can use https://sampforum.blast.hk/showthread.php?tid=12018 Its easy to use and Understand
4.Nah its impossible


Re: 4 questions - admantis - 11.03.2011

Quote:
Originally Posted by BASITJALIL
Посмотреть сообщение
1.Dont understand
2.1 At a time
3.You can use https://sampforum.blast.hk/showthread.php?tid=12018 Its easy to use and Understand
4.Nah its impossible
1¬ He meant a link for bank ATM's (automatic teller machines).
4¬ It's possible, by much.

Sorry, I can't help, I'm leaving now.


Re: 4 questions - bhaveshnande - 11.03.2011

You can attach 5 objects to a player on different bones.
It is possible to to set the skin without including all the ID's in your script
You can use strtok to find the ID that user types like /skin ID and then use it in SetPlayerSkin(playerid, skinid);
Refer this for strtok
https://sampwiki.blast.hk/wiki/Strtok
and this for SetPlayerSkin
https://sampwiki.blast.hk/wiki/SetPlayerSkin


Re: 4 questions - ElChapoGuzman - 11.03.2011

ok so if im making text draw should i do "KILLS %s" GetPlayerKills?
and please answer atm one and quest. 4


Re: 4 questions - omer5198 - 11.03.2011

4) put this:
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
    new tmp[256];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_ORANGE, "Usage: /skin 1-284");
        return 1;
    }
    new skinid;
    skinid = strval(tmp);
    SetPlayerSkin(playerid, skinid);
    return 1;
}
in this public:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
hope i helped!