20.06.2014, 08:00
I want that cmd only can used by the leader or member of faction number 14 here is the default code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tune", cmdtext, true, 10) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
CarmodDialog(playerid);
return 1;
}
else SendClientMessage(playerid,RED,"You must be in a vehicle to open this dialog!");
}
return 0;
}
public OnRconCommand(cmd[])
{
return 1;
}


