A question about printf & onplayercommandperfrom/text
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    printf("%s(%d) has used %s",GetPlayerNameEx(playerid),playerid,cmdtext);
    return 1;
}
EDIT: here's the stock of getplayernameex if you don't have it.
pawn Код:
stock GetPlayerNameEx(playerid)
{
     new pName[25];
     GetPlayerName(playerid, pName, sizeof(pName));
     return pName;
}
Reply


Messages In This Thread
-Delete- - by Johnson_Brooks - 14.06.2014, 02:53
Re: A question about printf & onplayercommandperfrom/text - by SilentSoul - 14.06.2014, 03:12

Forum Jump:


Users browsing this thread: 1 Guest(s)