[HELP]dcmd_shakin
#1

My handshake cmd don't wont to work tell me why??

Код:
dcmd(shake, 3, cmdtext);
Код:
dcmd_shake(playerid, params[])
    {
        if(!strlen(params))
        {
            SendClientMessage(playerid, COLOR_ERROR, "Use: /shake [ID]");
        }
        else
        {
            ID = strval(params);
            if(robtime[playerid] == 0)
            {
                if(ID != playerid)
                {
                    if(IsPlayerConnected(ID))
                    {
                        new oname[MAX_PLAYER_NAME];
                        GetPlayerName(ID, oname, sizeof(oname));
                        if(GetDistanceBetweenPlayers(playerid, ID) <= DISTANCE_BETWEEN_PLAYERS)
                        {
                        ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
                        ApplyAnimation(ID,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
                    		}
										}
								}
						}

        }
				return 1;
}
Reply


Messages In This Thread
[HELP]dcmd_shakin - by Nexotronix - 07.03.2010, 15:48
Re: [HELP]dcmd_shakin - by Correlli - 07.03.2010, 15:49
Re: [HELP]dcmd_shakin - by Nexotronix - 07.03.2010, 15:52
Re: [HELP]dcmd_shakin - by Correlli - 07.03.2010, 15:53
Re: [HELP]dcmd_shakin - by Torran - 07.03.2010, 15:54
Re: [HELP]dcmd_shakin - by Correlli - 07.03.2010, 15:56

Forum Jump:


Users browsing this thread: 4 Guest(s)