Save what player has typed
#8

i suggest the PVars:
Код:
SetPVarString(playerid,"Answered",params);
idk if you use params in your command, maybe its cmdtext.
to send a message to all (other) players will require a loop:
Код:
new string[128];
new answer[128];
GetPVarString(playerid,"Answered",answer,128)
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"(%d)%s answered: %s",playerid,Name,answer);
for(new id=0;id<MAX_PLAYERS;id++)
{
if(playerid!=id)
{
SendClientMessage(id,0xffffffff,string);
}
}
only the concept, didnt add the IsPlayerConnected etc stuff...
Reply


Messages In This Thread
Save what player has typed - by FreeSoul - 28.08.2011, 22:13
Re: Save what player has typed - by Abreezy - 28.08.2011, 23:27
Re: Save what player has typed - by grand.Theft.Otto - 28.08.2011, 23:44
Re: Save what player has typed - by LetsOWN[PL] - 29.08.2011, 01:30
Re: Save what player has typed - by grand.Theft.Otto - 29.08.2011, 01:52
Re: Save what player has typed - by Improvement™ - 29.08.2011, 05:57
Re: Save what player has typed - by FreeSoul - 29.08.2011, 09:42
Re: Save what player has typed - by Babul - 29.08.2011, 11:13

Forum Jump:


Users browsing this thread: 2 Guest(s)