Eh.. question
#1

Could someone give me an example of how to create command like "/lastchat", or "/lastentered"?

I've tried creating a "lastentered", but i never really understood how to save stuff.
One of my friends tried explaining it to me, but I still didn't understand it D:
Reply
#2

I dont know what u mean, more infos pls.
Reply
#3

Explain more,what do you want it to do
Reply
#4

Right, so

pawn Код:
CMD:lastdrivers(playerid, params[]) {
  //things that store it..?
  SendClientMessage(playerid, -1, "* Last drivers");
  //loop i guess?
  format(string, sizeof(string), "* %s[%d] || vID: %d", name, i/*d*/, vehicleid);
  SendClientMessage(playerid, -1, string);
  return 1;
}
Reply
#5

Figured it out by myself.
Reply
#6

In curiosity, how did you do it in the end?
Reply
#7

Quote:
Originally Posted by ConnorHunter
Посмотреть сообщение
In curiosity, how did you do it in the end?
I figured out a way of using SetPVarInt and GetPVarInt to 'store' it, then created a /clearhistory to delete the spam, or just /deletehistoryevent [PlayerID] .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)