27.12.2009, 00:36
Para converter comandos й facil ex.g:
// Topo
forward CMD(color, string[]); // Mude o CMD para algum texto ex.g: SetPlayerHealth - SPH
//final do gm
public CMD(color, string[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
// SEU COMANDO EXEMPLO
SetPlayerHealth(i, health); // Poderб mudar
}
return 0;
}
return 1;
}
// OnPlayerCommandText
if(strcmp(cmd, "/vida", true) == 0)
{
CMD(playerid, 0); // Se nгo funcionar playerid por favor troque por i
return 1;
}
Se der algum erro comente originalmente
L.A
// Topo
forward CMD(color, string[]); // Mude o CMD para algum texto ex.g: SetPlayerHealth - SPH
//final do gm
public CMD(color, string[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
// SEU COMANDO EXEMPLO
SetPlayerHealth(i, health); // Poderб mudar
}
return 0;
}
return 1;
}
// OnPlayerCommandText
if(strcmp(cmd, "/vida", true) == 0)
{
CMD(playerid, 0); // Se nгo funcionar playerid por favor troque por i
return 1;
}
Se der algum erro comente originalmente
L.A