14.06.2012, 14:04
hey .. how can i make Filter Script for admin /cleardeathwindow - /cdw ?? i want make script cleardeathwindow ... hope can help me
COMMAND:cdw(playerid, params[])
{
for(new i; i < 10; ++i)
{
SendDeathMessage( INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200 )//connection icon
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/cdw", cmdtext))
{
if( IsPlayerAdmin( playerid ) )//swap this for your admin variable if you have one
{
for(new i; i < 10; ++i)
{
SendDeathMessage( INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200 );//connection icon
}
return 1;
}
}
return 0;
}