Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Factions

 
  • 0 Vote(s) - 0 Average
Pawn Factions
Jaua
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Nov 2020
Reputation: 0
Location: Argentina
#1
2021-01-20, 01:07 AM
Excuse me guys im traying to make a simple factions system, i got this:

PHP Code:
{
case 
1: SetPlayerSkin(id, 265);

case 
2: SetPlayerSkin(id, 286);
case 
3: SetPlayerSkin(id, 285);
case 
4: SetPlayerSkin(id, 287);
case 
5: SetPlayerSkin(id, 70);
case 
6: SetPlayerSkin(id, 279);
case 
7: SetPlayerSkin(id, 147);
case 
8: SetPlayerSkin(id, 187);
case 
9: SetPlayerSkin(id, 61);
case 
10: SetPlayerSkin(id, 295);


    }        
} 


I would like to know if its possible to add skins for any rank, for example in my code i have the /makeleader + id + faction slot, when i use that cmd with the slot 1 ( police slot ) set me the leader skin ( 265 ) but i want to set 9 more skins for any rank of faction for each cases (faction slots) in the simplest way possible. I am new in pawno so im looking for a practical way that i can understand. Thanks in advance
Behemoth
Offline

Burgershot Member
Posts: 25
Threads: 4
Joined: Jan 2021
Reputation: 1
Location: Northern Ireland, UK
#2
2021-01-20, 01:55 AM
Yes, it is possible, however you will need to clarify in more detail what it is you are asking.

Are you looking for a way to change the skin with a command, or are you wanting the skin to change automatically when someones rank is changed?
Jaua
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Nov 2020
Reputation: 0
Location: Argentina
#3
2021-01-20, 02:21 AM
I want the skin to change automatically when someones rank is changed just like the leader , my problem is that only change the leader skin in 10 factions
Behemoth
Offline

Burgershot Member
Posts: 25
Threads: 4
Joined: Jan 2021
Reputation: 1
Location: Northern Ireland, UK
#4
2021-01-20, 03:09 AM
(2021-01-20, 02:21 AM)Jaua Wrote: I want the skin to change automatically when someones rank is changed just like the leader , my problem is that only change the leader skin in 10 factions

Can you paste the code for changing someones rank?
Jaua
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Nov 2020
Reputation: 0
Location: Argentina
#5
2021-01-20, 02:12 PM (This post was last modified: 2021-01-20, 03:16 PM by Jaua.)
Sure let me check
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#6
2021-01-20, 04:13 PM
>Sure let me check

nOice.
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode