Npc recording
#1

This code doesn't work for me, samp ver. 0.3.7 - what's wrong?

Код:
CMD:record(playerid, params[])
{
	if(isnull(params)) return Msg(playerid, "{ff0000}Usage: /record [name]");
    if(GetPlayerState(playerid) == 1)
    {
    	StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_ONFOOT, params);
    	Msg(playerid, "{ff0000}Record start %s (onfoot). If u want stop /stoprecord", params);
	}
	else if(GetPlayerState(playerid) == 2)
	{
    	StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_DRIVER, params); 
		Msg(playerid, "{ff0000}Record start %s (in vehicle). If u want stop /stoprecord", params);
	}
	return 1;
}

CMD:stoprecord(playerid)
{
    StopRecordingPlayerData(playerid);
	Msg(playerid, "{ff0000}Record stop.");
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)