16.12.2009, 12:30
You mean this?
Code:
if (strcmp("/rb", cmdtext, true, 10) == 0) { tmp = strtok(cmdtext,idx); if(!tmp[0])return SendClientMessage(playerid,ROT,"Use: /rb [Name]"); if(newstate == 2){ StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_DRIVER, tmp); SendClientMessage(playerid, 0xFFFFFFFF, "Type: Vehicle : Record Start"); } else if(newstate == 1){ StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_ONFOOT,tmp); SendClientMessage(playerid, 0xFFFFFFFF, "Typ: On Foot : Record Start"); } return 1; } if (strcmp("/pb", cmdtext, true, 10) == 0) { new tmp[64]; tmp = strtok(cmdtext,idx); if(!tmp[0])return SendClientMessage(playerid,ROT,"Use: /pb [Name]"); ConnectNPC(tmp,"BotFS"); }