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 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;
}