Teleport Message
#1

I'm sorry, i need help again im noob in scripting
How can i create a code
When i type /sf it sends message to all
Linus- has gone to /sf
help plz
Reply
#2

pawn Код:
// under the command
new name[ MAX_PLAYER_NAME ], str[ 50 ];
GetPlayerName( playerid, name, MAX_PLAYER_NAME );
format( str, sizeof( str ), "%s teleported to /sf", name );
SendClientMessageToAll( 0x000000FF, str ); // Change the color to your liking
Reply
#3

SendClientMessageToAll
SendPlayerMessageToAll

Search the wiki.
Reply
#4

pawn Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
CMDMessageToAll(playerid,"SF");
//bla bla
return 1;
}
pawn Код:
stock CMDMessageToAll(playerid,command[])
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
    format(string,sizeof(string),"[Teleport]: %s has gone to: /%s",string,command);
    return SendClientMessageToAll(0xFFFF00AA,string);
}
Reply
#5

omg, clive and grim you both are faster and pro's :P thankssssssss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)