23.01.2014, 12:17
Hello, I use this script to spawn armor though I would like to type the command / setarmatura forth the word / setarmatura [playerid] please help
Код HTML:
#define FILTERSCRIPT
#include <a_samp>
#define COLOR_SLATEGRAY 0x708090FF
#define COLOR_LIMEGREEN 0x32CD32FF
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/setarmatura", cmdtext, false) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "Non sei autorizzato a usare questo comando");
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, COLOR_LIMEGREEN, "Armatura settata");
return 1;
}
return 0;
}


: