[Ajuda] Mudar Nicks dos Players
#7

Aqui apenas tem isso.

Quote:

// Command simply sets the player's name to to "Superman" if possible, with no error checking or messages.
if(strcmp(cmdtext, "/superman", true) == 0)
{
SetPlayerName(playerid, "Superman");
return 1;
}

// Command sets the players name to "Superman" if possible, informs the player of
// any errors using a "switch" statement.
if(strcmp(cmdtext, "/superman", true) == 0)
{
switch(SetPlayerName(playerid, "Superman"))
{
case -1: SendClientMessage(playerid, 0xFF0000FF, "Unable to change your name, someone else is known as 'Superman' already.");
case 0: SendClientMessage(playerid, 0xFF0000FF, "You are already known as 'Superman'");
case 1: SendClientMessage(playerid, 0x00FF00FF, "You are now known as 'Superman'");
}
return 1;
}

Cadк o /SetName ID Nick ?
Reply


Messages In This Thread
[Ajuda] Mudar Nicks dos Players - by Gabriel Santana - 25.07.2012, 13:37
Re: [Ajuda] Mudar Nicks dos Players - by .FuneraL. - 25.07.2012, 13:40
Re: [Ajuda] Mudar Nicks dos Players - by crush_ - 25.07.2012, 13:41
AW: [Ajuda] Mudar Nicks dos Players - by billy the kid - 25.07.2012, 13:45
Re: [Ajuda] Mudar Nicks dos Players - by Gabriel Santana - 25.07.2012, 13:46
Re: AW: [Ajuda] Mudar Nicks dos Players - by Gabriel Santana - 25.07.2012, 13:48
Re: [Ajuda] Mudar Nicks dos Players - by Gabriel Santana - 25.07.2012, 13:54
AW: [Ajuda] Mudar Nicks dos Players - by billy the kid - 25.07.2012, 13:55
Re: [Ajuda] Mudar Nicks dos Players - by Gabriel Santana - 25.07.2012, 14:04
AW: [Ajuda] Mudar Nicks dos Players - by billy the kid - 25.07.2012, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)