[Ajuda] Converter OnPlayerCommandText para ZCMD
#1

Boas , como converte isso :

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_UP))
{
   OnPlayerCommandText(playerid,"/usaralvo1");
   OnPlayerCommandText(playerid,"/usaralvo2");
   OnPlayerCommandText(playerid,"/usaralvo3");
   OnPlayerCommandText(playerid,"/usaralvo4");
 
}
if ((newkeys==KEY_SPRINT))
{
   OnPlayerCommandText(playerid,"/usaralvo1");
   OnPlayerCommandText(playerid,"/usaralvo2");
   OnPlayerCommandText(playerid,"/usaralvo3");
   OnPlayerCommandText(playerid,"/usaralvo4");

}
return 1;
}
Para ZCMD ?
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new params[1];
    if ((newkeys==KEY_UP))
    {
        cmd_usaralvo1(playerid, params);
        cmd_usaralvo2(playerid, params);
        cmd_usaralvo3(playerid, params);
        cmd_usaralvo4(playerid, params);

    }
    if ((newkeys==KEY_SPRINT))
    {
        cmd_usaralvo1(playerid, params);
        cmd_usaralvo2(playerid, params);
        cmd_usaralvo3(playerid, params);
        cmd_usaralvo4(playerid, params);

    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)