smoke96
Участник
- Сообщения
- 1,134
- Реакции
- 175
Помогите пожалуйста , хочу сделать так чтобы когда игрок писал в чат !credits ему писало его кол-во кредитов , но что то не получается , помогите пожалуйста :(
PHP:
#pragma semicolon 1;
#include <sourcemod>
#include <shop>
public Plugin:myinfo =
{
name = "[Shop] Shop You Credits",
author = "Smoke",
version = "1.0",
url = ""
}
public OnPluginStart()
{
RegConsoleCmd("sm_credits", Command_credits, "Показывает кол-во кредитов в шопе");
}
public Action:Command_credits(сlient, args)
{
decl String:Text[65];
for (new i = 1; i <= MaxClients; i++)
if (IsClientInGame(i) && Shop_IsAuthorized(i))
{
PrintToChat(Text, 65, "У вас %s кредитов", client, i, Shop_GetClientCredits(i));
}
}