14.11.2017, 19:45
Hello guys, first of all excuse me for being shit at scripting I have literally ZERO knowledge, but I really need something quick.
So this is a simple SendClientMessage when I write the command /createplayer
Now, everytime I want to change the name of the player, I have to do it in the .pwn manually.
I am looking for a way to do it in game, without having to go in the .pwn to do it, with the same exact SendClientMessage to show with my new name that I pick.
Can you guys help me with that?
Like this:
If I was not clear enough, i'll explain it again in a more simple way
I need something to change the name John Smith for instance, without going to the .pwn and do it manually.
Im literally shit at scripting, and I tried different variatons, none work.
So this is a simple SendClientMessage when I write the command /createplayer
Now, everytime I want to change the name of the player, I have to do it in the .pwn manually.
I am looking for a way to do it in game, without having to go in the .pwn to do it, with the same exact SendClientMessage to show with my new name that I pick.
Can you guys help me with that?
Like this:
Код:
CMD:createplayer(playerid, params[]) { SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You created John Smith!"); SendClientMessage(playerid, COLOR_DBLUE,"A new player has been created"); SendClientMessage(playerid, COLOR_DBLUE,"Welcome John Smith, enjoy your stay!"); return 1; }
I need something to change the name John Smith for instance, without going to the .pwn and do it manually.
Im literally shit at scripting, and I tried different variatons, none work.