Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: mrockxkingbutt on April 04, 2013, 10:24:53 pm

Title: [GUPS] Custom GameMode Name By ME
Post by: mrockxkingbutt on April 04, 2013, 10:24:53 pm
Code: [Select]
else if ( strcmp( cmd, "setgname", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_RED, "USAGE: /c setgname [NAME]" );
else
{
SetGameModeText(tmp);
format( szMsg, sizeof( szMsg ), "GAMETEXT SETTED TO :[ %s ]", tmp );
SendClientMessageToAll(COLOR_GREEN, szMsg );
}
return 1;
}
/////////
saw a bug report it now