I need help making my own stock
#5

hmm

pawn Код:
/*I think you understood me wrong. It was just an example, i want to write everything with that stock, not only weapon names...

Like:
SendMeMessage(playerid, "opens the door."); ------> * Micheal opens the door.
SendMeMessage(playerid, "takes out his %s", weapon); ------> * Micheal takes out his Deagle.
SendMeMessage(playerid, "thinks of number %d", number); ------> * Micheal thinks of number 10.

I hope you get me? The format in this is what i need.*/


    new pname[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s has open the door.", pname);
    SendClientMessage(playerid, -1, string);
  //SendMeMessage(playerid, "opens the door."); ------> * Micheal opens the door.
 
    new weapon, string[256], pname[MAX_PLAYER_NAME];
    weapon = GetPlayerWeapon(playerid);
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s takes out his weapon %s", pname, weapon);
    SendClientMessage(playerid, -1, string);
  //SendMeMessage(playerid, "takes out his %s", weapon); ------> * Micheal takes out his Deagle.
 
    new pname[MAX_PLAYER_NAME], number, string[256];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s thinks of number %d", pname, number);
    SendClientMessage(playerid, -1, string);
  //SendMeMessage(playerid, "thinks of number %d", number); ------> * Micheal thinks of number 10.
Reply


Messages In This Thread
I need help making my own stock - by ddnbb - 09.08.2012, 05:14
Re: I need help making my own stock - by Devilxz97 - 09.08.2012, 05:45
Re: I need help making my own stock - by grand.Theft.Otto - 09.08.2012, 06:15
Re: I need help making my own stock - by ddnbb - 09.08.2012, 06:28
Re: I need help making my own stock - by Devilxz97 - 09.08.2012, 07:47

Forum Jump:


Users browsing this thread: 2 Guest(s)