Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot General Programming [HELP] Changing the skin when OnPlayerConnect

 
  • 0 Vote(s) - 0 Average
[HELP] Changing the skin when OnPlayerConnect
romanstti
Offline

Burgershot Member
Posts: 1
Threads: 1
Joined: Apr 2021
Reputation: 0
Location: Argentina
#1
2021-04-10, 02:31 PM


Hello there!
First of all, good morning, it is 11:11 here already.



I would like to clarify that I am ALL NEW on this Pawn scripting thing... I spent the whole night reading documents of variables and strings...
I still can not figure out what am I doing wrong!
Maybe someone here can help?


So, I will explain you what I am trying to do, because it is probably one of the most easiest things in Pawn scripting and if you take the time to *explain* me what I am doing wrong and how to apply it as it should, then I will be one of the happiest person alive!



I am trying to change the skin automatically only if the name of the player connected is equal to: "Luna_Beaule"

I have some custom skins added to the server, and I am trying to figure out how to change them if the X (GetPlayerName I GUESS!?!?!?) is the same as: Luna_Beaule.



I'll leave below the code I wrote *so wrong, please do not laugh, thank you*:

Code:
public OnPlayerConnect(playerid)
{
SendClientMessage (playerid, -1, "Servidor oficial de pruebas.");

return 1;
}
if (GetPlayerName(playerid, name) == Luna_Beaule) return SetPlayerSkin(playerid, 20003);

return 1;
}


« Next Oldest | Next Newest »



Messages In This Thread
[HELP] Changing the skin when OnPlayerConnect - by romanstti - 2021-04-10, 02:31 PM
RE: [HELP] Changing the skin when OnPlayerConnect - by robertocaribbean - 2021-04-10, 04:00 PM
RE: [HELP] Changing the skin when OnPlayerConnect - by ImOver - 2021-04-15, 12:45 PM
RE: [HELP] Changing the skin when OnPlayerConnect - by Snow - 2021-04-10, 06:51 PM

  • 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